Description
minimized code
$ dotr
Starting dotty REPL...
scala> class C { protected val c = 42 }
// defined class C
scala> val x = C()
1 |val x = C()
| ^^^
| missing argument for parameter i of constructor C: (i: Int): C
scala>
$ ll C.*
-rw-r--r-- 1 andrew staff 393 Nov 27 11:11 C.class
-rw-r--r-- 1 andrew staff 349 Nov 27 11:11 C.tasty
expectation
$ scala
Welcome to Scala 2.13.1 (OpenJDK 64-Bit Server VM, Java 1.8.0_222).
Type in expressions for evaluation. Or try :help.
scala> new C
^
error: not enough arguments for constructor C: (i: Int)C.
Unspecified value parameter i.
scala> class C { protected val c = 42 }
defined class C
scala> new C
res1: C = C@b0fc838