Skip to content

Commit d32547e

Browse files
Move correctly failing test to neg
1 parent ad5b0ad commit d32547e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pos/i2378.scala renamed to tests/neg/i2378.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ class Test(val tb: Toolbox) {
2121
implicit val cap: Cap = null
2222

2323
def foo(tree: Tree): Int = (tree: Any) match {
24-
case tb.Apply(fun, args) => 3
24+
case tb.Apply(fun, args) => 3 // error: ambiguous overload of unapply
2525
}
2626

2727
def bar(tree: tpd.Tree): Int = (tree: Any) match {
28-
case Apply(fun, args) => 3
28+
case Apply(fun, args) => 3 // error: ambiguous overload of unapply
2929
}
3030
}

0 commit comments

Comments
 (0)