summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/needstypeearly.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/pos/needstypeearly.scala b/test/files/pos/needstypeearly.scala
new file mode 100644
index 0000000000..a90c2575f2
--- /dev/null
+++ b/test/files/pos/needstypeearly.scala
@@ -0,0 +1,4 @@
+abstract class NeedsXEarly {
+ val x: Int
+}
+class Foo extends { val x = 1 } with NeedsXEarly