diff options
author | Som Snytt <som.snytt@gmail.com> | 2016-12-07 00:35:02 -0800 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2016-12-14 12:34:00 -0800 |
commit | 9df6d16f9b303caa98feb2ccd179352bd646c101 (patch) | |
tree | 09aa2a9be66e7ef89c09956303507293d67711c9 /test/files/neg/t10097.check | |
parent | b91b415b4fccfc46520dcd3f128b4b09d19d74f0 (diff) | |
download | scala-9df6d16f9b303caa98feb2ccd179352bd646c101.tar.gz scala-9df6d16f9b303caa98feb2ccd179352bd646c101.tar.bz2 scala-9df6d16f9b303caa98feb2ccd179352bd646c101.zip |
SI-10097 Error if no non-implicit case class param
Case class must have a non-implicit param list.
Error early, error often.
Also update spec to say that class implicitly gets
a non-implicit parameter section if it doesn't
have one, and that a case class must have one.
Diffstat (limited to 'test/files/neg/t10097.check')
-rw-r--r-- | test/files/neg/t10097.check | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t10097.check b/test/files/neg/t10097.check new file mode 100644 index 0000000000..bb896dffd2 --- /dev/null +++ b/test/files/neg/t10097.check @@ -0,0 +1,4 @@ +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 |