Commit 24dcb0c
committed
Improve debuggability for compiler crash when using tasty reflect
Without the change, we get an error message like the following:
```
1 |def test(x: Int) = foo(x)
| ^^^^^^
|An exception occurred while executing macro expansion
|assertion failed: no overloads available for > on Int with targs: ; args: x of types rhsTpe$_$1(x); expectedType: ?.all alternatives: def >(x: Double): Boolean, def >(x: Float): Boolean, def >(x: Long): Boolean, def >(x: Int): Boolean, def >(x: Char): Boolean, def >(x: Short): Boolean, def >(x: Byte): Boolean
```
With the change, mysterious type `rhsTpe$_$1(x)` is replaced with the type `String`.1 parent 6ede814 commit 24dcb0c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1129 | 1129 | | |
1130 | 1130 | | |
1131 | 1131 | | |
1132 | | - | |
| 1132 | + | |
1133 | 1133 | | |
1134 | 1134 | | |
1135 | 1135 | | |
| |||
0 commit comments