File tree Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ -- Error: tests/neg/3559b.scala:3:9 ------------------------------------------------------------------------------------
2+ 3 | this(b) // error
3+ | ^
4+ | b is not accessible from constructor arguments
Original file line number Diff line number Diff line change 1+ class A (a : Any ) {
2+ def this () = {
3+ this (b) // error
4+ }
5+
6+ def b = new {}
7+ }
Original file line number Diff line number Diff line change 1+ -- Error: tests/neg/3559c.scala:3:9 ------------------------------------------------------------------------------------
2+ 3 | this(a) // error
3+ | ^
4+ | a is not accessible from constructor arguments
Original file line number Diff line number Diff line change 1+ class A (a : Any ) {
2+ def this () = {
3+ this (a) // error
4+ }
5+
6+ def b = new {}
7+ }
You can’t perform that action at this time.
0 commit comments