diff options
author | Som Snytt <som.snytt@gmail.com> | 2016-12-08 14:03:05 -0800 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2016-12-14 12:34:00 -0800 |
commit | ca7bbcfb178c5a0c697a3cdd543e38f37b79f737 (patch) | |
tree | 0ed99623c891bf74cc118869ce3ac4ceaf9a29bc /test/files/neg/t10097.check | |
parent | 9df6d16f9b303caa98feb2ccd179352bd646c101 (diff) | |
download | scala-ca7bbcfb178c5a0c697a3cdd543e38f37b79f737.tar.gz scala-ca7bbcfb178c5a0c697a3cdd543e38f37b79f737.tar.bz2 scala-ca7bbcfb178c5a0c697a3cdd543e38f37b79f737.zip |
SI-8704 Error on bad implicit sections
Instead of aborting when a class def has extra
parameter section, take all parameter sections
and sanity check the use of leading implicit
to indicate an implicit parameter section.
Diffstat (limited to 'test/files/neg/t10097.check')
-rw-r--r-- | test/files/neg/t10097.check | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/files/neg/t10097.check b/test/files/neg/t10097.check index bb896dffd2..dc81bae0fa 100644 --- a/test/files/neg/t10097.check +++ b/test/files/neg/t10097.check @@ -1,4 +1,10 @@ t10097.scala:2: error: case classes must have a non-implicit parameter list; try 'case class C()(...)' case class C(implicit val c: Int) ^ -one error found +t10097.scala:4: error: case classes must have a non-implicit parameter list; try 'case class D()(...)(...)' +case class D(implicit c: Int)(s: String) + ^ +t10097.scala:4: error: an implicit parameter section must be last +case class D(implicit c: Int)(s: String) + ^ +three errors found |