Skip to content

The typechecker should forbid using type names as identifiers #35

@Alex23087

Description

@Alex23087

It is currently possible to write

fun main() : void {
    let void := 10;
}

This compiles to C, but obviously the resulting C program is not valid. The typechecker should avoid these cases.

Care should go into checking whether more complex cases such as

fun main() : void {
    let A := 10;
}

model A {
    let a :+ 0
}

should also be forbidden or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions