Commit 4828244
authored
Only consider methods with 0 parameters in valueOf (scala#20543)
`valueOf` should only consider getters, which have 0 parameters.
test with:
```
scala3-compiler / testOnly dotty.tools.repl.ScriptedTests -- dotty.tools.repl.ScriptedTests.replTests
```
Fixes scala#191841 parent 3d16f33 commit 4828244
File tree
2 files changed
+7
-1
lines changed- compiler
- src/dotty/tools/repl
- test-resources/repl
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments