diff options
Diffstat (limited to 'tests/untried/neg/t4158.check')
-rw-r--r-- | tests/untried/neg/t4158.check | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/t4158.check b/tests/untried/neg/t4158.check new file mode 100644 index 000000000..af281c52c --- /dev/null +++ b/tests/untried/neg/t4158.check @@ -0,0 +1,7 @@ +t4158.scala:3: error: an expression of type Null is ineligible for implicit conversion + var y = null: Int + ^ +t4158.scala:2: error: an expression of type Null is ineligible for implicit conversion + var x: Int = null + ^ +two errors found |