jakt icon indicating copy to clipboard operation
jakt copied to clipboard

Typechecker: enum methods can't see structs

Open sophiajt opened this issue 2 years ago • 0 comments

Example:

struct Foo {
    id: usize
}

enum What {
    Bar
    Baz

    function count(this) {
        Foo(id: 100)
    }
}

function main() {
    
}

Errors with: "Could not resolve call to Foo"

sophiajt avatar Jun 04 '22 21:06 sophiajt