Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abstract record's fields can be accessed with methods #184

Open
dominik-muc opened this issue Mar 7, 2025 · 0 comments
Open

Abstract record's fields can be accessed with methods #184

dominik-muc opened this issue Mar 7, 2025 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@dominik-muc
Copy link
Contributor

Following code type-checks:

module M
    abstr data C = { inner : Int }

    pub let c = C { inner = 42 }
end

let a = M.c.inner

This might be related to #51

@ppolesiuk ppolesiuk added bug Something isn't working good first issue Good for newcomers labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants