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 05cd85b commit 3bd6afeCopy full SHA for 3bd6afe
tests/pos/i3539.scala renamed to tests/run/i3539.scala
@@ -1,7 +1,7 @@
1
object Test {
2
def main(args: Array[String]): Unit = {
3
val i2s = (x: Int) => ""
4
- assert(asInstanceOf.asInstanceOf[AnyRef => String].apply(null) == "")
+ assert(i2s.asInstanceOf.asInstanceOf[AnyRef => String].apply(null) == "")
5
val i2i = (x: Int) => x + 1
6
assert(i2i.asInstanceOf[AnyRef => Int].apply(null) == 1)
7
}
0 commit comments