aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/subtyping.scala
blob: d7f849ddc6500547d7fb02df6814ac0f6697ff6f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                           
class B {
  class X
}
class A extends B

object Test {
  def foo(a: A#X): Unit = {
    return;
  }
  def test(): Unit = {
    foo(??? : B#X);
  }
}