File tree Expand file tree Collapse file tree 11 files changed +38
-38
lines changed Expand file tree Collapse file tree 11 files changed +38
-38
lines changed Original file line number Diff line number Diff line change 11-- Error: tests/init/neg/closureLeak.scala:11:14 -----------------------------------------------------------------------
2211 | l.foreach(a => a.addX(this)) // error
33 | ^^^^^^^^^^^^^^^^^
4- | Cannot prove the argument is fully initialized . Only fully initialized values are safe to leak.
4+ | Cannot prove the method argument is hot . Only hot values are safe to leak.
55 | Found = Fun { this = ThisRef[class Outer], owner = class Outer }. Calling trace:
66 | -> class Outer { [ closureLeak.scala:1 ]
77 | ^
88 | -> l.foreach(a => a.addX(this)) // error [ closureLeak.scala:11 ]
99 | ^^^^^^^^^^^^^^^^^
1010 |
11- | Promoting the value to fully initialized failed due to the following problem:
12- | Cannot prove the argument is fully initialized . Only fully initialized values are safe to leak.
11+ | Promoting the value to hot failed due to the following problem:
12+ | Cannot prove the method argument is hot . Only hot values are safe to leak.
1313 | Found = ThisRef[class Outer].
1414 | Non initialized field(s): value p. Calling trace:
1515 | -> l.foreach(a => a.addX(this)) // error [ closureLeak.scala:11 ]
Original file line number Diff line number Diff line change 11-- Error: tests/init/neg/cycle-structure.scala:3:13 --------------------------------------------------------------------
223 | val x = B(this) // error
33 | ^^^^^^^
4- | Problematic object instantiation: arg 1 is not fully initialized . Calling trace:
4+ | Problematic object instantiation: arg 1 is not hot . Calling trace:
55 | -> case class A(b: B) { [ cycle-structure.scala:1 ]
66 | ^
77 | -> val x = B(this) // error [ cycle-structure.scala:3 ]
1616-- Error: tests/init/neg/cycle-structure.scala:9:13 --------------------------------------------------------------------
17179 | val x = A(this) // error
1818 | ^^^^^^^
19- | Problematic object instantiation: arg 1 is not fully initialized . Calling trace:
19+ | Problematic object instantiation: arg 1 is not hot . Calling trace:
2020 | -> case class B(a: A) { [ cycle-structure.scala:7 ]
2121 | ^
2222 | -> val x = A(this) // error [ cycle-structure.scala:9 ]
Original file line number Diff line number Diff line change 11-- Error: tests/init/neg/default-this.scala:9:8 ------------------------------------------------------------------------
229 | compare() // error
33 | ^^^^^^^
4- | Cannot prove the argument is fully initialized . Only fully initialized values are safe to leak.
4+ | Cannot prove the method argument is hot . Only hot values are safe to leak.
55 | Found = ThisRef[class B].
66 | Non initialized field(s): value result. Calling trace:
77 | -> class B extends A { [ default-this.scala:6 ]
Original file line number Diff line number Diff line change 11-- Error: tests/init/neg/i15363.scala:3:10 -----------------------------------------------------------------------------
223 | val b = new B(this) // error
33 | ^^^^^^^^^^^
4- | Problematic object instantiation: arg 1 is not fully initialized . Calling trace:
4+ | Problematic object instantiation: arg 1 is not hot . Calling trace:
55 | -> class A: [ i15363.scala:1 ]
66 | ^
77 | -> val b = new B(this) // error [ i15363.scala:3 ]
Original file line number Diff line number Diff line change 11-- Error: tests/init/neg/i15459.scala:3:10 -----------------------------------------------------------------------------
223 | println(this) // error
33 | ^^^^
4- | Cannot prove the argument is fully initialized . Only fully initialized values are safe to leak.
4+ | Cannot prove the method argument is hot . Only hot values are safe to leak.
55 | Found = ThisRef[class Sub].
66 | Non initialized field(s): value b. Calling trace:
77 | -> class Sub extends Sup: [ i15459.scala:5 ]
Original file line number Diff line number Diff line change 11-- Error: tests/init/neg/inherit-non-hot.scala:6:32 --------------------------------------------------------------------
226 | if b == null then b = new B(this) // error
33 | ^^^^^^^^^^^^^^^
4- |The RHS of reassignment must be fully initialized . Found = Warm[class B] { outer = Hot, args = (Cold) }. Calling trace:
5- |-> class C extends A { [ inherit-non-hot.scala:15 ]
6- | ^
7- |-> val bAgain = toB.getBAgain [ inherit-non-hot.scala:16 ]
8- | ^^^
9- |-> def toB: B = [ inherit-non-hot.scala:5 ]
10- | ^
11- |-> if b == null then b = new B(this) // error [ inherit-non-hot.scala:6 ]
12- | ^^^^^^^^^^^^^^^
4+ | The RHS of reassignment must be hot . Found = Warm[class B] { outer = Hot, args = (Cold) }. Calling trace:
5+ | -> class C extends A { [ inherit-non-hot.scala:15 ]
6+ | ^
7+ | -> val bAgain = toB.getBAgain [ inherit-non-hot.scala:16 ]
8+ | ^^^
9+ | -> def toB: B = [ inherit-non-hot.scala:5 ]
10+ | ^
11+ | -> if b == null then b = new B(this) // error [ inherit-non-hot.scala:6 ]
12+ | ^^^^^^^^^^^^^^^
1313 |
14- |Promoting the value to fully initialized failed due to the following problem:
15- |Cannot prove that the field value a is fully initialized . Found = Cold.
14+ | Promoting the value to hot failed due to the following problem:
15+ | Cannot prove that the field value a is hot . Found = Cold.
Original file line number Diff line number Diff line change 11-- Error: tests/init/neg/inlined-method.scala:8:45 ---------------------------------------------------------------------
228 | scala.runtime.Scala3RunTime.assertFailed(message) // error
33 | ^^^^^^^
4- | Cannot prove the argument is fully initialized . Only fully initialized values are safe to leak.
5- | Found = ThisRef[class InlineError].
6- | Non initialized field(s): value v. Calling trace:
7- | -> class InlineError { [ inlined-method.scala:1 ]
8- | ^
9- | -> Assertion.failAssert(this) [ inlined-method.scala:2 ]
10- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
11- | -> scala.runtime.Scala3RunTime.assertFailed(message) // error [ inlined-method.scala:8 ]
12- | ^^^^^^^
4+ | Cannot prove the method argument is hot . Only hot values are safe to leak.
5+ | Found = ThisRef[class InlineError].
6+ | Non initialized field(s): value v. Calling trace:
7+ | -> class InlineError { [ inlined-method.scala:1 ]
8+ | ^
9+ | -> Assertion.failAssert(this) [ inlined-method.scala:2 ]
10+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
11+ | -> scala.runtime.Scala3RunTime.assertFailed(message) // error [ inlined-method.scala:8 ]
12+ | ^^^^^^^
Original file line number Diff line number Diff line change 11-- Error: tests/init/neg/inner-first.scala:3:12 ------------------------------------------------------------------------
223 | println(this) // error
33 | ^^^^
4- | Cannot prove the argument is fully initialized . Only fully initialized values are safe to leak.
4+ | Cannot prove the method argument is hot . Only hot values are safe to leak.
55 | Found = ThisRef[class B].
66 | Non initialized field(s): value n. Calling trace:
77 | -> class B: [ inner-first.scala:2 ]
Original file line number Diff line number Diff line change 11-- Error: tests/init/neg/promotion-loop.scala:16:10 --------------------------------------------------------------------
2216 | println(b) // error
33 | ^
4- | Cannot prove the argument is fully initialized . Only fully initialized values are safe to leak.
4+ | Cannot prove the method argument is hot . Only hot values are safe to leak.
55 | Found = Warm[class B] { outer = ThisRef[class Test] }. Calling trace:
66 | -> class Test { test => [ promotion-loop.scala:1 ]
77 | ^
88 | -> println(b) // error [ promotion-loop.scala:16 ]
99 | ^
1010 |
11- | Promoting the value to fully initialized failed due to the following problem:
12- | Cannot prove that the field value outer is fully initialized . Found = ThisRef[class Test].
11+ | Promoting the value to hot failed due to the following problem:
12+ | Cannot prove that the field value outer is hot . Found = ThisRef[class Test].
1313 | Non initialized field(s): value n.
Original file line number Diff line number Diff line change 11-- Error: tests/init/neg/secondary-ctor4.scala:54:14 -------------------------------------------------------------------
2254 | val c = new C(b, 5) // error
33 | ^^^^^^^^^^^
4- | Problematic object instantiation: arg 1 is not fully initialized . Calling trace:
4+ | Problematic object instantiation: arg 1 is not hot . Calling trace:
55 | -> class D { [ secondary-ctor4.scala:52 ]
66 | ^
77 | -> val c = new C(b, 5) // error [ secondary-ctor4.scala:54 ]
2424-- Error: tests/init/neg/secondary-ctor4.scala:42:4 --------------------------------------------------------------------
252542 | new A(new B(new D)) // error
2626 | ^^^^^^^^^^^^^^^^^^^
27- | Problematic object instantiation: the outer M.this and arg 1 are not fully initialized . Calling trace:
27+ | Problematic object instantiation: the outer M.this and arg 1 are not hot . Calling trace:
2828 | -> class N(d: D) extends M(d) { [ secondary-ctor4.scala:59 ]
2929 | ^
3030 | -> def this(d: D) = { [ secondary-ctor4.scala:7 ]
You can’t perform that action at this time.
0 commit comments