iter 22b.2.4: constraint-references-unbound-type-var diagnostic
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"schema": "ailang/v0",
|
||||
"name": "test_22b2_unbound_constraint_var",
|
||||
"imports": [],
|
||||
"defs": [
|
||||
{
|
||||
"kind": "class",
|
||||
"name": "Foo",
|
||||
"param": "a",
|
||||
"methods": [
|
||||
{
|
||||
"name": "foo",
|
||||
"type": {
|
||||
"k": "forall",
|
||||
"vars": ["a"],
|
||||
"constraints": [
|
||||
{ "class": "Bar", "type": { "k": "var", "name": "z" } }
|
||||
],
|
||||
"body": {
|
||||
"k": "fn",
|
||||
"params": [{ "k": "var", "name": "a" }],
|
||||
"ret": { "k": "con", "name": "Unit" },
|
||||
"effects": []
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user