summaryrefslogtreecommitdiff
path: root/test/files/neg/t2801.check
blob: 25320de5bc4e4ce6c230e39def4e10455e376d5b (plain) (blame)
1
2
3
4
5
6
t2801.scala:2: error: type mismatch;
 found   : Null(null)
 required: A
  def f[A <: AnyRef] = { val a: A = null ; a }
                                    ^
one error found