diff --git a/tests/pos/i2112.scala b/tests/pos/i2112.scala new file mode 100644 index 000000000000..cebce7018dac --- /dev/null +++ b/tests/pos/i2112.scala @@ -0,0 +1,7 @@ +import scala.collection.JavaConverters._ + +object Test { + def test(x: Any): Unit = { + x.asInstanceOf[java.util.List[_]].asScala.toList + } +}