Open
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