[2.x] Update Parser.~.unapply (#8927)

This commit is contained in:
kenji yoshida 2026-03-20 09:12:22 +09:00 committed by GitHub
parent b8ab0031f1
commit e0a067da99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions

View File

@ -460,7 +460,14 @@ trait ParserMain {
object ~ {
/** Convenience for destructuring a tuple that mirrors the `~` combinator. */
def unapply[A, B](t: (A, B)): Some[(A, B)] = Some(t)
def unapply[A, B](t: (A, B)): (A, B) = t
/**
* for binary compatibility
*/
@annotation.targetName("unapply")
@deprecated("Use unapply instead", "2.0.0")
private[sbt] def unapplyDeprecated[A, B](t: (A, B)): Some[(A, B)] = Some(t)
}