diff --git a/lang/README.md b/lang/README.md index 1264e8d6..e404432f 100644 --- a/lang/README.md +++ b/lang/README.md @@ -628,9 +628,14 @@ main := fn(): uint { ```hb Structure := struct {} +BigStructure := struct {a: uint, b: uint} + returner_fn := fn(): ?Structure { - structure := Structure.() - return structure + return .() +} + +returner_bn := fn(): ?BigStructure { + return .(0, 0) } main := fn(): int { diff --git a/lang/src/son.rs b/lang/src/son.rs index 3b867a43..6e86225d 100644 --- a/lang/src/son.rs +++ b/lang/src/son.rs @@ -4267,7 +4267,6 @@ impl<'a> Codegen<'a> { match oty.loc(self.tys) { Loc::Reg => { - std::println!("{} {} {}", self.ty_display(oty), flag_offset, self.tys.size_of(oty)); self.strip_ptr(val); // registers have inverted offsets so that accessing the inner type is a noop let flag_offset = self.tys.size_of(oty) * 8 - flag_offset * 8 - 1;