Skip to content

Commit e1d2d56

Browse files
authored
Merge pull request #3711 from dotty-staging/test-#2112
Fix #2112: Add regression test
2 parents 6b5544d + 2d9f6f7 commit e1d2d56

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/pos/i2112.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import scala.collection.JavaConverters._
2+
3+
object Test {
4+
def test(x: Any): Unit = {
5+
x.asInstanceOf[java.util.List[_]].asScala.toList
6+
}
7+
}

0 commit comments

Comments
 (0)