iter 22b.2.2: kind-mismatch class-schema diagnostic

This commit is contained in:
2026-05-09 17:45:27 +02:00
parent 04bde14a9e
commit 928deb9d74
4 changed files with 152 additions and 8 deletions
+29
View File
@@ -0,0 +1,29 @@
{
"schema": "ailang/v0",
"name": "test_22b2_kind_mismatch",
"imports": [],
"defs": [
{
"kind": "class",
"name": "Functor",
"param": "f",
"methods": [
{
"name": "fmap",
"type": {
"k": "fn",
"params": [
{ "k": "fn", "params": [{ "k": "var", "name": "a" }],
"ret": { "k": "var", "name": "b" }, "effects": [] },
{ "k": "con", "name": "f",
"args": [{ "k": "var", "name": "a" }] }
],
"ret": { "k": "con", "name": "f",
"args": [{ "k": "var", "name": "b" }] },
"effects": []
}
}
]
}
]
}