dusklang / dusk

The Dusk Programming Language
Other
0 stars 0 forks source link

Problem with more complicated struct field assignments #83

Closed zachwolfe closed 3 years ago

zachwolfe commented 3 years ago

The last line here fails the typechecker for some reason. If I instead assign a string literal, it works.

foo := Foo {
    a: 24
    b: 782
    c: "Hello, world!"
    d: D {
        e: 13.5
        f: 12.2
    }
    g: 32
}
foo.c = std.concat(foo.c, "\n")
zachwolfe commented 3 years ago

Nevermind, I forgot concat is in the std.str namespace 🤦‍♂️