Skip to content

Commit 99fed5a

Browse files
committed
Update tests
1 parent 57a4c3d commit 99fed5a

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

tests/init/neg/cycle-structure.check

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
-- Error: tests/init/neg/cycle-structure.scala:3:14 --------------------------------------------------------------------
2-
3 | val x = B(this) // error
3-
| ^^^^
4-
| Cannot prove that the value is fully initialized. May only use initialized value as arguments.
51
-- Error: tests/init/neg/cycle-structure.scala:9:14 --------------------------------------------------------------------
62
9 | val x = A(this) // error
73
| ^^^^
84
| Cannot prove that the value is fully initialized. May only use initialized value 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. May only use initialized value as arguments.

tests/init/neg/enum-desugared.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
| Cannot prove that the value is fully-initialized. May only use initialized value as method arguments.
1414
|
1515
| The unsafe promotion may cause the following problem:
16-
| Calling the external method method name may cause initialization errors. Calling trace:
16+
| Calling the external method method ordinal may cause initialization errors. Calling trace:
1717
| -> Array(this.LazyErrorId, this.NoExplanationID) // error // error [ enum-desugared.scala:17 ]
18-
| -> override def productPrefix: String = this.name() [ enum-desugared.scala:29 ]
18+
| -> def errorNumber: Int = this.ordinal() - 2 [ enum-desugared.scala:8 ]

tests/init/neg/inner-loop.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Outer { outer =>
22
class Inner extends Outer {
3-
val x = 5 + outer.n
3+
val x = 5 + outer.n // error
44
}
55
val inner = new Inner
66
val n = 6 // error

tests/init/neg/local-warm4.check

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
| -> class A(x: Int) extends Foo(x) { [ local-warm4.scala:6 ]
77
| -> val b = new B(y) [ local-warm4.scala:10 ]
88
| -> class B(x: Int) extends A(x) { [ local-warm4.scala:13 ]
9-
| -> if y < 10 then increment() [ local-warm4.scala:23 ]
10-
| -> updateA() [ local-warm4.scala:21 ]
9+
| -> class A(x: Int) extends Foo(x) { [ local-warm4.scala:6 ]
10+
| -> increment() [ local-warm4.scala:9 ]
11+
| -> updateA() [ local-warm4.scala:21 ]

0 commit comments

Comments
 (0)