diff options
Diffstat (limited to 'tests/pos/t1119.scala')
-rw-r--r-- | tests/pos/t1119.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pos/t1119.scala b/tests/pos/t1119.scala new file mode 100644 index 000000000..8b36877c4 --- /dev/null +++ b/tests/pos/t1119.scala @@ -0,0 +1,10 @@ +trait B +{ + type T >: this.type <: B + + + // compile-time check: have we achieved our objective? + def test: T = this +} + + |