fix: add nulliter to micro wacc

This commit is contained in:
Gleb Koval 2025-02-14 00:21:10 +00:00
parent 03999e00ef
commit 6a6aadbbeb
Signed by: cyclane
GPG Key ID: 15E168A8B332382C

View File

@ -14,6 +14,7 @@ object microWacc {
case class BoolLiter(v: Boolean) extends Expr(KnownType.Bool)
case class CharLiter(v: Char) extends Expr(KnownType.Char)
case class ArrayLiter(elems: List[Expr])(ty: SemType) extends Expr(ty)
case class NullLiter()(ty: SemType) extends Expr(ty)
case class Ident(name: String)(identTy: SemType)
extends Expr(identTy)
with CallTarget(identTy)