Skip to content

ICE when trying to use record field as a type #370

Closed
@vickenty

Description

This program

type Foo a = bar.Baz a
{}

crashes gluon:

thread '<unnamed>' panicked at 'ICE: Alias group were not able to resolve an identifier', /checkout/src/libcore/option.rs:839:4

Looks like gluon does not allow specifying types via field access at all. In other situations field as a type produces 'type does not exist' or unification errors, which makes me think that perhaps this syntax should be rejected by the parser?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions