File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- -- Error: tests/neg/i23406.scala:18 :7 ----------------------------------------------------------------------------------
2
- 18 | funny[String] // error
1
+ -- Error: tests/neg/i23406.scala:21 :7 ----------------------------------------------------------------------------------
2
+ 21 | funny[String] // error
3
3
| ^^^^^^^^^^^^^
4
4
| value x is unusable in method Test because it refers to an erased expression
5
5
| in the selector of an inline match that reduces to
18
18
7 | case x: String => x
19
19
| ^
20
20
--------------------------------------------------------------------------------------------------------------------
21
- -- Error: tests/neg/i23406.scala:19 :9 ----------------------------------------------------------------------------------
22
- 19 | problem[String] // error
21
+ -- Error: tests/neg/i23406.scala:22 :9 ----------------------------------------------------------------------------------
22
+ 22 | problem[String] // error
23
23
| ^^^^^^^^^^^^^^^
24
24
| value x is unusable in method Test because it refers to an erased expression
25
25
| in the selector of an inline match that reduces to
Original file line number Diff line number Diff line change @@ -20,5 +20,5 @@ inline def alsoOk[T](erased x: T): String =
20
20
def Test =
21
21
funny[String ] // error
22
22
problem[String ] // error
23
- ok[String ]
24
- alsoOk[String ](compiletime.erasedValue)
23
+ ok[String ]
24
+ alsoOk[String ](compiletime.erasedValue)
You can’t perform that action at this time.
0 commit comments