forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix scala#14667: Remove mangling of inner AnyQualifiedName's in fullN…
…ameSeparated. This brings the `case name @ AnyQualfiedName(_, _)` in line with the behavior of `case naem: SimpleName`, which already did not mangle before this change. This fixes scala#14667 because `Mixin.traitSetterName` indirectly calls `fullNameSeparated`, and expanded private symbolic member names would get mangled, and therefore could not identify their corresponding fields anymore.
- Loading branch information
1 parent
67f11ff
commit 1b4e0e2
Showing
3 changed files
with
19 additions
and
1 deletion.
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,2 @@ | ||
sigma | ||
alpha beta gamma |
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,16 @@ | ||
trait A { | ||
private val ? = "sigma" | ||
def a = ? | ||
|
||
val ?? = "alpha beta gamma" | ||
def b = ?? | ||
} | ||
|
||
class B extends A | ||
|
||
object Test { | ||
def main(args: Array[String]): Unit = { | ||
println(new B().a) | ||
println(new B().b) | ||
} | ||
} |