-
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 attributes in selectDynamic and applyDynamic
[Cherry-picked dee9ed7][modified]
- Loading branch information
1 parent
a567054
commit e0c235f
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") |