wrong handling of embeds

This commit is contained in:
Jakub Doka 2024-10-13 16:38:51 +02:00
parent 2ab6f6c914
commit 0f8a720fe8
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143

View file

@ -801,7 +801,7 @@ impl Codegen {
use {Expr as E, TokenKind as T};
let value = match *expr {
E::Mod { id, .. } => Some(Value::ty(ty::Kind::Module(id).compress())),
E::Embed { id, .. } => Some(Value::ty(ty::Kind::Global(id).compress())),
E::Embed { id, .. } => self.handle_global(id),
E::Struct { captured, packed, fields, pos, .. } => {
if captured.is_empty() {
Some(Value::ty(