summaryrefslogblamecommitdiff
path: root/test/files/neg/null-unsoundness.scala
blob: d30ff613b1bcd98c9c62629df01ab8f387824e37 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                        
class B
class C(x: String) extends B

class A {
  type A >: Null
  class D { type T >: C <: B }
  val x: D with A = null
  var y: x.T = new C("abc")
}
object Test extends A with Application {
  class C { type T = Int; val x = 1 }
  type A = C
  y = 42
}