tests: update tests with operation overloads
This commit is contained in:
@@ -13,20 +13,6 @@
|
||||
]
|
||||
},
|
||||
"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": [
|
||||
@@ -172,7 +158,9 @@
|
||||
"name": "d"
|
||||
}
|
||||
},
|
||||
"type": {}
|
||||
"type": {
|
||||
"name": "int"
|
||||
}
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
|
||||
@@ -1,34 +1,5 @@
|
||||
{
|
||||
"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')"
|
||||
}
|
||||
],
|
||||
"diagnostics": [],
|
||||
"judgments": [
|
||||
{
|
||||
"location": {
|
||||
@@ -214,7 +185,9 @@
|
||||
"name": "v2"
|
||||
}
|
||||
},
|
||||
"type": {}
|
||||
"type": {
|
||||
"name": "float"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user