mirror of https://github.com/sbt/sbt.git
[2.x] Update Parser.~.unapply (#8927)
This commit is contained in:
parent
b8ab0031f1
commit
e0a067da99
|
|
@ -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)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue