-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit 4bbd5b3
authored
With the new stdlib fully compiled with Scala 3, we get the following
warning in the test suite before this change
```scala
at 109: Cyclic initialization: object Predef -> object Manifest -> object ManifestFactory -> object Predef. Calling trace:
├── object Manifest { [ Manifest.scala:76 ]
│ ^
├── val Byte: ManifestFactory.ByteManifest = ManifestFactory.Byte [ Manifest.scala:86 ]
│ ^^^^^^^^^^^^^^^
├── object Predef extends LowPriorityImplicits { [ Predef.scala:109 ]
│ ^
├── val Manifest = scala.reflect.Manifest [ Predef.scala:210 ]
│ ^^^^^^^^^^^^^^^^^^^^^^
├── object ManifestFactory { [ Manifest.scala:171 ]
│ ^
└── private[this] val ObjectTYPE = classOf[java.lang.Object] [ Manifest.scala:323 ]
```
Since `Predef.classOf` is magic, we can safely ignore these fields in
the init checker.
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
79 | + | ||
80 | + | ||
81 | + | ||
79 | 82 |
| |
80 | - | ||
83 | + | ||
84 | + | ||
81 | 85 |
| |
82 | 86 |
| |
83 | 87 |
| |
|
0 commit comments