iter ctt.2: Registry.type_def_module re-key to (owning_module, bare_name)
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"schema": "ailang/v0",
|
||||
"name": "ctt2_collision_lib",
|
||||
"imports": [{ "module": "ctt2_collision_cls" }],
|
||||
"defs": [
|
||||
{
|
||||
"kind": "type",
|
||||
"name": "Foo",
|
||||
"ctors": [{ "name": "MkLib", "fields": [] }]
|
||||
},
|
||||
{
|
||||
"kind": "instance",
|
||||
"class": "MyC",
|
||||
"type": { "k": "con", "name": "Foo" },
|
||||
"methods": [
|
||||
{
|
||||
"name": "op",
|
||||
"body": {
|
||||
"t": "lam",
|
||||
"params": ["_x"],
|
||||
"paramTypes": [{ "k": "con", "name": "Foo" }],
|
||||
"retType": { "k": "con", "name": "Int" },
|
||||
"body": { "t": "lit", "lit": { "kind": "int", "value": 2 } }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user