Skip to content

Commit 3b239f8

Browse files
committed
Fix test
-- Error: tests/init/pos/i12544.scala:5:9 ------------------------------------------------------------------------------ 5 | object nested: | ^ | Cyclic object initialization for object nested, object Enum. Calling trace: | -> object nested: [ i12544.scala:5 ] | -> val a: Enum = Case [ i12544.scala:6 ] | -> object Enum: [ i12544.scala:4 ] | -> val b: Enum = f(nested.a) [ i12544.scala:8 ]
1 parent 126aa19 commit 3b239f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/init/pos/i12544.scala renamed to tests/init/neg/i12544.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ enum Enum:
22
case Case
33

44
object Enum:
5-
object nested:
5+
object nested: // error
66
val a: Enum = Case
77

88
val b: Enum = f(nested.a)

0 commit comments

Comments
 (0)