summaryrefslogtreecommitdiff
path: root/test/files/neg/anytrait.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/anytrait.scala')
-rw-r--r--test/files/neg/anytrait.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/anytrait.scala b/test/files/neg/anytrait.scala
new file mode 100644
index 0000000000..1501486105
--- /dev/null
+++ b/test/files/neg/anytrait.scala
@@ -0,0 +1,10 @@
+trait T extends Any {
+
+ var x = 1
+
+ { x += 1 }
+
+ type T = Int
+
+ val y: T
+}