diff options
author | Martin Odersky <odersky@gmail.com> | 2016-03-11 10:48:59 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-03-12 14:25:02 +0100 |
commit | 69b07e2466ae96c37066ee02c7d45b9b52417342 (patch) | |
tree | ddc3b149a85942ddf982affddfeb807d3515a2d0 /tests/pos | |
parent | d34a9e3d89a8e205e23a6d59e02ccf736dd572f4 (diff) | |
download | dotty-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/pos')
-rw-r--r-- | tests/pos/i1131.scala | 14 |
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 {} +} |