iter ct.1.7: on-disk fixture tests for canonical-form diagnostics
This commit is contained in:
@@ -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": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user