Skip to content

Commit c12f2ea

Browse files
committed
Simplify subtying test
1 parent e0b290c commit c12f2ea

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/neg/subtyping.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ class B {
44
class A extends B
55

66
object Test {
7-
def foo(a: A#X): Unit = {
8-
return;
9-
}
107
def test(): Unit = {
11-
foo(??? : B#X);
8+
implicitly[B#X <:< A#X]
129
}
1310
}

0 commit comments

Comments
 (0)