summaryrefslogtreecommitdiff
path: root/test/files/neg/bug391.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/bug391.scala')
-rw-r--r--test/files/neg/bug391.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/bug391.scala b/test/files/neg/bug391.scala
new file mode 100644
index 0000000000..08c083baa5
--- /dev/null
+++ b/test/files/neg/bug391.scala
@@ -0,0 +1,6 @@
+trait C {
+ def fun1(def x: Int): Int = x; // the "def x" is illegal
+ def fun2(val x: Int): Int = x; // the "val x" is illegal
+}
+
+class E(def x: Int); // the "def x" is illegal