File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ -- Error: tests/init/neg/enum-desugared.scala:17:15 --------------------------------------------------------------------
2
+ 17 | Array(this.LazyErrorId, this.NoExplanationID) // error // error
3
+ | ^^^^^^^^^^^^^^^^
4
+ | Promoting the value to fully-initialized is unsafe. May only use initialized value as method arguments
5
+ |
6
+ | The unsafe promotion may cause the following problem(s):
7
+ |
8
+ | 1. Calling the external method method name may cause initialization errors. Calling trace:
9
+ | -> override def productPrefix: String = this.name() [ enum-desugared.scala:29 ]
10
+ | -> Array(this.LazyErrorId, this.NoExplanationID) // error // error [ enum-desugared.scala:17 ]
11
+ -- Error: tests/init/neg/enum-desugared.scala:17:33 --------------------------------------------------------------------
12
+ 17 | Array(this.LazyErrorId, this.NoExplanationID) // error // error
13
+ | ^^^^^^^^^^^^^^^^^^^^
14
+ | Promoting the value to fully-initialized is unsafe. May only use initialized value as method arguments
15
+ |
16
+ | The unsafe promotion may cause the following problem(s):
17
+ |
18
+ | 1. Calling the external method method ordinal may cause initialization errors. Calling trace:
19
+ | -> def errorNumber: Int = this.ordinal() - 2 [ enum-desugared.scala:8 ]
20
+ | -> Array(this.LazyErrorId, this.NoExplanationID) // error // error [ enum-desugared.scala:17 ]
Original file line number Diff line number Diff line change
1
+ -- Error: tests/init/neg/enum.scala:4:8 --------------------------------------------------------------------------------
2
+ 4 | NoExplanationID // error
3
+ | ^
4
+ | Promoting the value to fully-initialized is unsafe. May only use initialized value as method arguments
5
+ |
6
+ | The unsafe promotion may cause the following problem(s):
7
+ |
8
+ | 1. Calling the external method method name may cause initialization errors. Calling trace:
9
+ | -> NoExplanationID // error [ enum.scala:4 ]
You can’t perform that action at this time.
0 commit comments