DenialAdams / roland

Roland programming language
https://www.brick.codes/roland
Apache License 2.0
48 stars 0 forks source link

literal_as_bytes in backend does not account for struct default values => crash #128

Closed DenialAdams closed 8 months ago

DenialAdams commented 8 months ago
struct Foo {
   x: u8 = 10,
}

static F: Foo = Foo {};

proc main() {
   print(int_to_string(F.x as i64));
}
DenialAdams commented 8 months ago

Fixed by removing struct default values for now