diff options
Diffstat (limited to 'tests/pos/typers.scala')
-rw-r--r-- | tests/pos/typers.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/pos/typers.scala b/tests/pos/typers.scala index fd2cc9b74..dbbee3d74 100644 --- a/tests/pos/typers.scala +++ b/tests/pos/typers.scala @@ -76,6 +76,23 @@ object typers { val b: B = new B val y = b.x + val z: String = y + + } + + object Self { + + class A(self: Int) { self => + + class B { + val b = self + val c: A = b + } + + val a = self + val c: A = a + } + } |