aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t6663.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/t6663.scala')
-rw-r--r--tests/pending/run/t6663.scala17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/pending/run/t6663.scala b/tests/pending/run/t6663.scala
deleted file mode 100644
index bfe464ad6..000000000
--- a/tests/pending/run/t6663.scala
+++ /dev/null
@@ -1,17 +0,0 @@
-import language.dynamics
-
-class C(v: Any) extends Dynamic {
- def selectDynamic[T](n: String): Option[T] = Option(v.asInstanceOf[T])
- def applyDynamic[T](n: String)(): Option[T] = Option(v.asInstanceOf[T])
-}
-
-object Test extends dotty.runtime.LegacyApp {
- // this should be converted to
- // C(42).selectDynamic[Int]("foo").get
- // but, before fixing SI-6663, became
- // C(42).selectDynamic[Nothing]("foo").get
- // leading to a ClassCastException
- var v = new C(42).foo[Int].get
- println(v)
-}
-