tests: update tests with operation overloads

This commit is contained in:
2026-06-07 14:28:36 +02:00
parent 59e73f0fd9
commit d278dc5f5b
2 changed files with 7 additions and 46 deletions

View File

@@ -13,20 +13,6 @@
] ]
}, },
"message": "Cannot assign BaseType(name='str') to c of type BaseType(name='int')" "message": "Cannot assign BaseType(name='str') to c of type BaseType(name='int')"
},
{
"type": "Error",
"location": {
"start": [
9,
4
],
"end": [
9,
9
]
},
"message": "Undefined operation __add__ between BaseType(name='bool') and BaseType(name='bool')"
} }
], ],
"judgments": [ "judgments": [
@@ -172,7 +158,9 @@
"name": "d" "name": "d"
} }
}, },
"type": {} "type": {
"name": "int"
}
}, },
{ {
"location": { "location": {

View File

@@ -1,34 +1,5 @@
{ {
"diagnostics": [ "diagnostics": [],
{
"type": "Error",
"location": {
"start": [
12,
5
],
"end": [
12,
12
]
},
"message": "Undefined operation __add__ between BaseType(name='int') and BaseType(name='float')"
},
{
"type": "Error",
"location": {
"start": [
12,
0
],
"end": [
12,
12
]
},
"message": "Cannot assign UnknownType() to v3 of type BaseType(name='float')"
}
],
"judgments": [ "judgments": [
{ {
"location": { "location": {
@@ -214,7 +185,9 @@
"name": "v2" "name": "v2"
} }
}, },
"type": {} "type": {
"name": "float"
}
} }
] ]
} }