aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/i1131.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/pos/i1131.scala b/tests/pos/i1131.scala
new file mode 100644
index 000000000..42c2a685c
--- /dev/null
+++ b/tests/pos/i1131.scala
@@ -0,0 +1,14 @@
+class Outer {
+ class Inner
+}
+
+trait MustBeATrait {
+ val o = new Outer
+ val inner = {
+ class C {
+ new o.Inner
+ }
+ new C
+ }
+ val inner2 = new o.Inner {}
+}