We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 477246e commit e1d39baCopy full SHA for e1d39ba
test/test_typecheck/test_name_resolve.py
@@ -60,18 +60,19 @@ def test_params(self):
60
'v0': (v0 := NameInfo(f1_scope, 'v0', ValType(), is_param=True)),
61
's0': (s0 := NameInfo(f1_scope, 's0', ValType(), is_param=True)),
62
'n0': NameInfo(f1_scope, 'n0', ValType(), is_param=True),
63
+ 'L0': NameInfo(f1_scope, 'L0', ValType())
64
}
65
f1_scope.used = {'v0': v0, 's0': s0}
66
sc.declared = {
67
'f1': FuncInfo.from_param_info(sc, 'f1', [
68
ParamInfo('b0', BoolType()),
69
ParamInfo('v0', ValType()),
- ParamInfo('s0', ValType()), # val == string == number for now
70
+ ParamInfo('s0', ValType()), # val == string == number for now
71
ParamInfo('n0', ValType()),
72
], VoidType(), f1_scope),
73
'f2': FuncInfo.from_param_info(sc, 'f2', [], VoidType(), Scope())
74
- self.assertEqual(self.getNameResolver(src).run(), sc)
75
+ self.assertEqual(sc, self.getNameResolver(src).run())
76
77
78
class TestNameResolveErrors(CommonTestCase):
0 commit comments