-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add child to parent in completion context
This ensures that the positions of forced Child annotations always happens in the source file of the parent class, and not in another file that forced the completion to happen [Cherry-picked a2bec5e]
- Loading branch information
1 parent
ead0f11
commit fb83702
Showing
4 changed files
with
1,361 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Z.* | ||
|
||
object A: | ||
val a: Option[AOptions] = ??? | ||
val b: Option[BOptions] = ??? | ||
val c: Option[COptions] = ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//> using options -Ytest-pickler-check | ||
|
||
// in the original issue https://github.com/scala/scala3/issues/21154, the non-deterministic tasty | ||
// depends on the order of compilation of files, the use-site (A.scala) has to come first, | ||
// and the file defining the enum has to come second (Z.scala), A.scala in namer will force Z to complete. | ||
enum Z: | ||
case AOptions() | ||
case BOptions() | ||
case COptions() |
Oops, something went wrong.