Skip to content

Commit 62bd3a7

Browse files
mbovelhamzaremmalHarrisL2ajafri2001
committed
Fix Constant tag of Expr(null: String)
Co-authored-by: Hamza Remmal <[email protected]> Co-authored-by: HarrisL2 <[email protected]> Co-authored-by: Abdullah Arif Jafri <[email protected]>
1 parent fb6cc9b commit 62bd3a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/scala/quoted/runtime/impl/QuotesImpl.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -2529,7 +2529,8 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
25292529
end StringConstantTypeTest
25302530

25312531
object StringConstant extends StringConstantModule:
2532-
def apply(x: String): StringConstant = dotc.core.Constants.Constant(x)
2532+
def apply(x: String): StringConstant =
2533+
dotc.core.Constants.Constant(x: Any)
25332534
def unapply(constant: StringConstant): Some[String] = Some(constant.stringValue)
25342535
end StringConstant
25352536

0 commit comments

Comments
 (0)