Skip to content
This repository was archived by the owner on Jun 13, 2020. It is now read-only.
This repository was archived by the owner on Jun 13, 2020. It is now read-only.

Type inference fails in ark-gl #740

@felixangell

Description

@felixangell

Specifically here:

pub func (g: ^Game) render() {
    mut i := uint(0);
    for i < g.entities.getLength() {
        entity: ^mut entity::Entity = g.entities.get(i);
        match entity {
            some(e) => {
                e.render();
            },
        }
        i += 1;
    }
}

I get this error:

error: [game:45:5] Unable to infer type of member `render` on type `$104`
                e.render();
                ^

Metadata

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