55 lines
959 B
JSON
55 lines
959 B
JSON
{
|
|
"schema": "ailang/v0",
|
|
"name": "test_22b1_dup_a",
|
|
"imports": [
|
|
{
|
|
"module": "test_22b1_dup_b"
|
|
}
|
|
],
|
|
"defs": [
|
|
{
|
|
"kind": "class",
|
|
"name": "Show",
|
|
"param": "a",
|
|
"methods": [
|
|
{
|
|
"name": "show",
|
|
"type": {
|
|
"k": "fn",
|
|
"params": [
|
|
{
|
|
"k": "var",
|
|
"name": "a"
|
|
}
|
|
],
|
|
"ret": {
|
|
"k": "con",
|
|
"name": "Str"
|
|
},
|
|
"effects": []
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"kind": "instance",
|
|
"class": "Show",
|
|
"type": {
|
|
"k": "con",
|
|
"name": "test_22b1_dup_b.MyInt"
|
|
},
|
|
"methods": [
|
|
{
|
|
"name": "show",
|
|
"body": {
|
|
"t": "lit",
|
|
"lit": {
|
|
"kind": "str",
|
|
"value": "from-a"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |