We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7071cd9 commit 86e72dbCopy full SHA for 86e72db
tests/neg/i2378.scala
@@ -20,11 +20,11 @@ class Test(val tb: Toolbox) {
20
import tb._
21
implicit val cap: Cap = null
22
23
- def foo(tree: Tree): Int = tree match { // error: private escape
24
- case tb.Apply(fun, args) => 3 // error
+ def foo(tree: Tree): Int = (tree: Any) match {
+ case tb.Apply(fun, args) => 3 // error, but error message is wrong
25
}
26
27
- def bar(tree: tpd.Tree): Int = tree match { // error: private escape
28
- case Apply(fun, args) => 3 // error
+ def bar(tree: tpd.Tree): Int = (tree: Any) match {
+ case Apply(fun, args) => 3 // error, but error message is wrong
29
30
0 commit comments