File tree 2 files changed +12
-0
lines changed 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change
1
+ -- Error: tests/init/neg/closureLeak.scala:11:14 -----------------------------------------------------------------------
2
+ 11 | l.foreach(a => a.addX(this)) // error
3
+ | ^^^^^^^^^^^^^^^^^
4
+ | Cannot prove that the value is fully-initialized. May only use initialized value as arguments.
5
+ |
6
+ | The unsafe promotion may cause the following problem:
7
+ | Cannot prove that the value is fully initialized. May only use initialized value as arguments.
Original file line number Diff line number Diff line change
1
+ -- Error: tests/init/neg/default-this.scala:9:8 ------------------------------------------------------------------------
2
+ 9 | compare() // error
3
+ | ^^^^^^^
4
+ | Cannot prove that the value is fully initialized. May only use initialized value as arguments. Calling trace:
5
+ | -> val result = updateThenCompare(5) [ default-this.scala:11 ]
You can’t perform that action at this time.
0 commit comments