Skip to content

Commit 6ba5b5b

Browse files
committed
Update check files with new wording
1 parent 57b25f7 commit 6ba5b5b

File tree

5 files changed

+15
-21
lines changed

5 files changed

+15
-21
lines changed

tests/init/neg/closureLeak.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-- Error: tests/init/neg/closureLeak.scala:11:14 -----------------------------------------------------------------------
22
11 | l.foreach(a => a.addX(this)) // error
33
| ^^^^^^^^^^^^^^^^^
4-
| Cannot prove that the value is fully-initialized. May only use initialized value as arguments.
4+
| Cannot prove that the value is fully-initialized. Only initialized values may be used as arguments.
55
|
66
| The unsafe promotion may cause the following problem:
7-
| Cannot prove that the value is fully initialized. May only use initialized value as arguments.
7+
| Cannot prove that the value is fully initialized. Only initialized values may be used as arguments.

tests/init/neg/cycle-structure.check

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
-- Error: tests/init/neg/cycle-structure.scala:2:15 --------------------------------------------------------------------
2-
2 | val x1 = b.x // error
3-
| ^^^
4-
| Access field A.this.b.x on a value with an unknown initialization status. Calling trace:
5-
| -> val x = A(this) [ cycle-structure.scala:9 ]
6-
| -> case class A(b: B) { [ cycle-structure.scala:1 ]
7-
-- Error: tests/init/neg/cycle-structure.scala:8:15 --------------------------------------------------------------------
8-
8 | val x1 = a.x // error
9-
| ^^^
10-
| Access field B.this.a.x on a value with an unknown initialization status. Calling trace:
11-
| -> val x = A(this) [ cycle-structure.scala:9 ]
12-
| -> case class A(b: B) { [ cycle-structure.scala:1 ]
13-
| -> val x = B(this) [ cycle-structure.scala:3 ]
14-
| -> case class B(a: A) { [ cycle-structure.scala:7 ]
1+
-- Error: tests/init/neg/cycle-structure.scala:9:14 --------------------------------------------------------------------
2+
9 | val x = A(this) // error
3+
| ^^^^
4+
| Cannot prove that the value is fully initialized. Only initialized values may be used as arguments.
5+
-- Error: tests/init/neg/cycle-structure.scala:3:14 --------------------------------------------------------------------
6+
3 | val x = B(this) // error
7+
| ^^^^
8+
| Cannot prove that the value is fully initialized. Only initialized values may be used as arguments.

tests/init/neg/default-this.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- Error: tests/init/neg/default-this.scala:9:8 ------------------------------------------------------------------------
22
9 | compare() // error
33
| ^^^^^^^
4-
| Cannot prove that the value is fully initialized. May only use initialized value as arguments. Calling trace:
4+
| Cannot prove that the value is fully initialized. Only initialized values may be used as arguments. Calling trace:
55
| -> val result = updateThenCompare(5) [ default-this.scala:11 ]

tests/init/neg/promotion-loop.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-- Error: tests/init/neg/promotion-loop.scala:16:10 --------------------------------------------------------------------
22
16 | println(b) // error
33
| ^
4-
| Cannot prove that the value is fully-initialized. May only use initialized value as arguments.
4+
| Cannot prove that the value is fully-initialized. Only initialized values may be used as arguments.
55
|
66
| The unsafe promotion may cause the following problem:
7-
| Cannot prove that the value is fully initialized. May only use initialized value as arguments.
7+
| Cannot prove that the value is fully initialized. Only initialized values may be used as arguments.

tests/init/neg/t3273.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
-- Error: tests/init/neg/t3273.scala:4:42 ------------------------------------------------------------------------------
22
4 | val num1: LazyList[Int] = 1 #:: num1.map(_ + 1) // error
33
| ^^^^^^^^^^^^^^^
4-
| Cannot prove that the value is fully-initialized. May only use initialized value as arguments.
4+
| Cannot prove that the value is fully-initialized. Only initialized values may be used as arguments.
55
|
66
| The unsafe promotion may cause the following problem:
77
| Access non-initialized value num1. Calling trace:
88
| -> val num1: LazyList[Int] = 1 #:: num1.map(_ + 1) // error [ t3273.scala:4 ]
99
-- Error: tests/init/neg/t3273.scala:5:61 ------------------------------------------------------------------------------
1010
5 | val num2: LazyList[Int] = 1 #:: num2.iterator.map(_ + 1).to(LazyList) // error
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12-
| Cannot prove that the value is fully-initialized. May only use initialized value as arguments.
12+
| Cannot prove that the value is fully-initialized. Only initialized values may be used as arguments.
1313
|
1414
| The unsafe promotion may cause the following problem:
1515
| Access non-initialized value num2. Calling trace:

0 commit comments

Comments
 (0)