diff options
Diffstat (limited to 'tests/untried/neg/t2801.check')
-rw-r--r-- | tests/untried/neg/t2801.check | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/untried/neg/t2801.check b/tests/untried/neg/t2801.check new file mode 100644 index 000000000..25320de5b --- /dev/null +++ b/tests/untried/neg/t2801.check @@ -0,0 +1,6 @@ +t2801.scala:2: error: type mismatch; + found : Null(null) + required: A + def f[A <: AnyRef] = { val a: A = null ; a } + ^ +one error found |