summaryrefslogtreecommitdiff
path: root/test/files/continuations-neg/t5314-missing-result-type.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/continuations-neg/t5314-missing-result-type.check')
-rw-r--r--test/files/continuations-neg/t5314-missing-result-type.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/continuations-neg/t5314-missing-result-type.check b/test/files/continuations-neg/t5314-missing-result-type.check
new file mode 100644
index 0000000000..341e580cf3
--- /dev/null
+++ b/test/files/continuations-neg/t5314-missing-result-type.check
@@ -0,0 +1,4 @@
+t5314-missing-result-type.scala:6: error: method bar has return statement; needs result type
+ def bar(x:Int) = return foo(x)
+ ^
+one error found