diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2015-10-02 11:56:44 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2015-10-09 14:59:59 +0200 |
commit | c9c8f223f832a602f4487f3a6a5b75b8affe6280 (patch) | |
tree | ad26b1161fcc1fdb69a6a968d46b0d4da1267ca1 /tests/pos/escapingRefs.scala | |
parent | 48acd08ac7e6346ffa573163fc1993cbdae458cd (diff) | |
download | dotty-c9c8f223f832a602f4487f3a6a5b75b8affe6280.tar.gz dotty-c9c8f223f832a602f4487f3a6a5b75b8affe6280.tar.bz2 dotty-c9c8f223f832a602f4487f3a6a5b75b8affe6280.zip |
TypeAssigner#avoid: don't miss escaping refs in complex types
Diffstat (limited to 'tests/pos/escapingRefs.scala')
-rw-r--r-- | tests/pos/escapingRefs.scala | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/pos/escapingRefs.scala b/tests/pos/escapingRefs.scala index a7960bee4..c18720764 100644 --- a/tests/pos/escapingRefs.scala +++ b/tests/pos/escapingRefs.scala @@ -1,5 +1,7 @@ class Outer { - class Inner + class Inner { + class Inner2 + } } object Test { @@ -8,5 +10,11 @@ object Test { val o = new Outer new o.Inner } + + val b: Outer#Inner#Inner2 = { + val o = new Outer + val i = new o.Inner + new i.Inner2 + } } } |