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