aboutsummaryrefslogtreecommitdiff
path: root/tests/neg
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg')
-rw-r--r--tests/neg/i1703.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/neg/i1703.scala b/tests/neg/i1703.scala
new file mode 100644
index 000000000..a0c8c337c
--- /dev/null
+++ b/tests/neg/i1703.scala
@@ -0,0 +1,5 @@
+class DuplicateClassName { () => { // error: not a legal self type clause
+ { () =>
+ }
+}
+}