Closed
Description
This code snippet emits a warning with scalac but not with Dotty
class Foo {
def foo(x: Any): Boolean =
x.isInstanceOf[List[String]]
}
Foo.scala:3: warning: non-variable type argument String in type List[String] (the underlying of List[String]) is unchecked since it is eliminated by erasure
x.isInstanceOf[List[String]]
^
one warning found