diff options
-rw-r--r-- | tests/pos/subtyping.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pos/subtyping.scala b/tests/pos/subtyping.scala index c8d7a82a9..e8acb842c 100644 --- a/tests/pos/subtyping.scala +++ b/tests/pos/subtyping.scala @@ -1,3 +1,9 @@ +class A { + def test1(): Unit = { + implicitly[this.type <:< this.type] + implicitly[this.type <:< A] + } +} object test { class B |