-
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.
Encode the name of the attribute in Selectable.selectDynamic (#18928)
Fixes #18612
- Loading branch information
Showing
6 changed files
with
30 additions
and
3 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
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 @@ | ||
class X extends scala.reflect.Selectable: | ||
val `+` = "1" | ||
|
||
@main def Test = | ||
val x = X() | ||
assert(x.selectDynamic("+") == "1") |
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 @@ | ||
class X extends scala.reflect.Selectable: | ||
val plus = "1" | ||
|
||
@main def Test = | ||
val x = X() | ||
assert(x.selectDynamic("plus") == "1") |
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,7 @@ | ||
class X extends scala.reflect.Selectable: | ||
def + = "1" | ||
|
||
@main def Test = | ||
val x = X() | ||
assert(x.selectDynamic("+") == "1") | ||
assert(x.applyDynamic("+")() == "1") |
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,7 @@ | ||
class X extends scala.reflect.Selectable: | ||
def plus = "1" | ||
|
||
@main def Test = | ||
val x = X() | ||
assert(x.selectDynamic("plus") == "1") | ||
assert(x.applyDynamic("plus")() == "1") |