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

Type variables do not appear in TModel defs/uses #2185

Open
toinehartman opened this issue Mar 11, 2025 · 0 comments
Open

Type variables do not appear in TModel defs/uses #2185

toinehartman opened this issue Mar 11, 2025 · 0 comments

Comments

@toinehartman
Copy link
Contributor

Describe the bug

Type variable do not appear in TModel defs nor uses.

To Reproduce

void typeVar() {
    println("=== Type variables ===");
    tm = typeCheck("&T f(&T t) = t;");

    defs = {d.defined | Define d:<_, _, _, typeVarId(), _, _> <- tm.defines};

    // No definitions, nor uses
    print("Defs - of role `typeVarId()`: ");
    iprintln(defs);

    uses = tm.useDef o tm.defines<defined, idRole>;
    print("Uses - of role `typeVarId()`: ");
    iprintln(uses);
    println("======================\n");
}

Expected behavior
Defs and uses to exist.

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

No branches or pull requests

1 participant