aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-03-11 10:48:59 +0100
committerMartin Odersky <odersky@gmail.com>2016-03-12 14:25:02 +0100
commit69b07e2466ae96c37066ee02c7d45b9b52417342 (patch)
treeddc3b149a85942ddf982affddfeb807d3515a2d0 /tests
parentd34a9e3d89a8e205e23a6d59e02ccf736dd572f4 (diff)
downloaddotty-69b07e2466ae96c37066ee02c7d45b9b52417342.tar.gz
dotty-69b07e2466ae96c37066ee02c7d45b9b52417342.tar.bz2
dotty-69b07e2466ae96c37066ee02c7d45b9b52417342.zip
Test case
The test fails if either of the previous two commits is missing.
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 {}
+}