Skip to content

Commit c727542

Browse files
committed
add back check files
1 parent 4a473e7 commit c727542

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/init/neg/closureLeak.check

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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.

tests/init/neg/default-this.check

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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 ]

0 commit comments

Comments
 (0)