diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2016-03-21 22:56:08 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2016-03-26 22:55:00 -0700 |
commit | 391e2843f420bb4686b974b18ac361c9bb49465c (patch) | |
tree | 580deff7251bd37f57fc4b432c6c772f55ff98f0 /test/files/neg/sammy_error.check | |
parent | b0b0abab89f0c40ba3c45b4a1f7bada31040d55a (diff) | |
download | scala-391e2843f420bb4686b974b18ac361c9bb49465c.tar.gz scala-391e2843f420bb4686b974b18ac361c9bb49465c.tar.bz2 scala-391e2843f420bb4686b974b18ac361c9bb49465c.zip |
Don't adapt erroneous tree to SAM type.
Do not report second error. Go straight to the exit.
Based on review by Jason.
Diffstat (limited to 'test/files/neg/sammy_error.check')
-rw-r--r-- | test/files/neg/sammy_error.check | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/sammy_error.check b/test/files/neg/sammy_error.check new file mode 100644 index 0000000000..f14ac7e3a2 --- /dev/null +++ b/test/files/neg/sammy_error.check @@ -0,0 +1,4 @@ +sammy_error.scala:6: error: missing parameter type + foo(x => x) // should result in only one error (the second one stemmed from adapting to SAM when the tree was erroneous) + ^ +one error found |