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
33 | ^^^^^^^^^^^^^
44 | value x is unusable in method Test because it refers to an erased expression
55 | in the selector of an inline match that reduces to
1818 7 | case x: String => x
1919 | ^
2020 --------------------------------------------------------------------------------------------------------------------
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
2323 | ^^^^^^^^^^^^^^^
2424 | value x is unusable in method Test because it refers to an erased expression
2525 | 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 =
2020def Test =
2121 funny[String ] // error
2222 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