summaryrefslogtreecommitdiff
path: root/test/files/neg/t8675b.check
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-06-26 11:32:01 +0200
committerJason Zaugg <jzaugg@gmail.com>2014-06-26 11:32:01 +0200
commit5ba129070f46da9b981d36afe2f9f0aac50c3800 (patch)
treee7fa9391e2a3a14805800e8b91e1efcb57a71548 /test/files/neg/t8675b.check
parent7a16f76673530f71bf1b8fa79b489b502ef504a8 (diff)
downloadscala-5ba129070f46da9b981d36afe2f9f0aac50c3800.tar.gz
scala-5ba129070f46da9b981d36afe2f9f0aac50c3800.tar.bz2
scala-5ba129070f46da9b981d36afe2f9f0aac50c3800.zip
SI-8675 Add another test case for swallowed type errors
As reported on scala-internals. After tightening up the treatment of undetermined type parameters in SI-7944, the enclosed test case no longer typechecks. And since the regression fixed in the previous commit, the error was swallowed by the typechecker only to be burped up by a crash in the backend.
Diffstat (limited to 'test/files/neg/t8675b.check')
-rw-r--r--test/files/neg/t8675b.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t8675b.check b/test/files/neg/t8675b.check
new file mode 100644
index 0000000000..cb7ac8af59
--- /dev/null
+++ b/test/files/neg/t8675b.check
@@ -0,0 +1,6 @@
+t8675b.scala:19: error: missing parameter type for expanded function
+The argument types of an anonymous function must be fully known. (SLS 8.5)
+Expected type was: List[Test.Reportable1[?,?]] => Boolean
+ for (path: List[Any] <- (null : Engine1).asRequirement.pathsIncludingSelf.toList) {
+ ^
+one error found