diff options
Diffstat (limited to 'test/files/pos/t7520.scala')
-rw-r--r-- | test/files/pos/t7520.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/t7520.scala b/test/files/pos/t7520.scala new file mode 100644 index 0000000000..747f5278e5 --- /dev/null +++ b/test/files/pos/t7520.scala @@ -0,0 +1,10 @@ +class A { + val x: Singleton with this.type = this + val y: this.type = x +} + +class B { + val x = "" + val xs: x.type with Singleton = x + val y: x.type = xs +} |