aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t846.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t846.check')
-rw-r--r--tests/untried/neg/t846.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/untried/neg/t846.check b/tests/untried/neg/t846.check
new file mode 100644
index 000000000..242a8001f
--- /dev/null
+++ b/tests/untried/neg/t846.check
@@ -0,0 +1,6 @@
+t846.scala:9: error: type mismatch;
+ found : Null(null)
+ required: B
+ if (a != null) f(a) else null
+ ^
+one error found