iter ct.1.7: on-disk fixture tests for canonical-form diagnostics

This commit is contained in:
2026-05-11 01:46:58 +02:00
parent 727d2c13ec
commit f22f88b547
4 changed files with 106 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
{
"schema": "ailang/v0",
"name": "test_ct1_bad_qualifier",
"imports": [],
"defs": [
{
"kind": "fn",
"name": "f",
"type": {
"k": "fn",
"params": [],
"ret": { "k": "con", "name": "Mystery.Type" },
"effects": []
},
"params": [],
"body": { "t": "lit", "lit": { "kind": "unit" } }
}
]
}
@@ -0,0 +1,24 @@
{
"schema": "ailang/v0",
"name": "test_ct1_bare_xmod_rejected",
"imports": [],
"defs": [
{
"kind": "fn",
"name": "main",
"type": {
"k": "fn",
"params": [],
"ret": { "k": "con", "name": "Unit" },
"effects": ["IO"]
},
"params": [],
"body": {
"t": "ctor",
"type": "Ordering",
"ctor": "LT",
"args": []
}
}
]
}
@@ -0,0 +1,13 @@
{
"schema": "ailang/v0",
"name": "test_ct1_qualified_class_rejected",
"imports": [],
"defs": [
{
"kind": "instance",
"class": "prelude.Eq",
"type": { "k": "con", "name": "Int" },
"methods": []
}
]
}