aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t1044.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t1044.scala')
-rw-r--r--tests/run/t1044.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run/t1044.scala b/tests/run/t1044.scala
new file mode 100644
index 000000000..227f6de27
--- /dev/null
+++ b/tests/run/t1044.scala
@@ -0,0 +1,4 @@
+object Test extends dotty.runtime.LegacyApp {
+ val ducks = Array[AnyRef]("Huey", "Dewey", "Louie");
+ ducks.iterator.asInstanceOf[Iterator[String]]
+}