-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
area:annotationsarea:experimentalarea:experimental:unrollIssues tied to the @unroll annotationIssues tied to the @unroll annotationarea:reportingError reporting including formatting, implicit suggestions, etcError reporting including formatting, implicit suggestions, etcbetter-errorsIssues concerned with improving confusing/unhelpful diagnostic messagesIssues concerned with improving confusing/unhelpful diagnostic messagesitype:enhancement
Description
Compiler version
3.7.0-RC1
Minimized example
case class Foo(@scala.annotation.unroll x: Int)
Output Error/Warning message
[44] [info] compiling 1 Scala source to /Users/lihaoyi/test/out/compile.dest/classes ...
[44] [error] value $lessinit$greater$default$1 is not a member of object Foo
[44] [error] one error found
Why this Error/Warning was not helpful
I would expect this to produce a similar error message to @unroll
ing a method param or normal class param that is lacking a default value
[44] [error] -- Error: /Users/lihaoyi/test/src/test.scala:1:35 ------------------------------
[44] [error] 1 |class Foo(@scala.annotation.unroll x: Int)
[44] [error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[44] [error] |Cannot unroll method <init> in class Foo at line 1 because parameter x needs a default value
Metadata
Metadata
Assignees
Labels
area:annotationsarea:experimentalarea:experimental:unrollIssues tied to the @unroll annotationIssues tied to the @unroll annotationarea:reportingError reporting including formatting, implicit suggestions, etcError reporting including formatting, implicit suggestions, etcbetter-errorsIssues concerned with improving confusing/unhelpful diagnostic messagesIssues concerned with improving confusing/unhelpful diagnostic messagesitype:enhancement