aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t405.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t405.scala')
-rw-r--r--tests/run/t405.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/run/t405.scala b/tests/run/t405.scala
new file mode 100644
index 000000000..a78203e3d
--- /dev/null
+++ b/tests/run/t405.scala
@@ -0,0 +1,5 @@
+object Test extends dotty.runtime.LegacyApp {
+ val x = M;
+ object M;
+ assert(x eq M)
+}