aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t1747.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t1747.scala')
-rw-r--r--tests/run/t1747.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run/t1747.scala b/tests/run/t1747.scala
new file mode 100644
index 000000000..f2b51a253
--- /dev/null
+++ b/tests/run/t1747.scala
@@ -0,0 +1,6 @@
+object Foo extends Foo {
+ def f: Unit = {}
+}
+class Foo
+
+object Test extends dotty.runtime.LegacyApp { Foo }