diff options
Diffstat (limited to 'tests/untried/neg/t6889.check')
-rw-r--r-- | tests/untried/neg/t6889.check | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/t6889.check b/tests/untried/neg/t6889.check new file mode 100644 index 000000000..a77e8a010 --- /dev/null +++ b/tests/untried/neg/t6889.check @@ -0,0 +1,7 @@ +t6889.scala:16: error: the result type of an implicit conversion must be more specific than AnyRef + def f(x: Dingo): AnyRef = x // fail - no conversion to AnyRef + ^ +t6889.scala:17: error: an expression of type Null is ineligible for implicit conversion + var x: Int = null // fail - no conversion from Null + ^ +two errors found |