Fix errors

This commit is contained in:
germax26 2025-01-06 13:58:40 +11:00
parent c7e4a0aeca
commit 7bc353c7aa
Signed by: germax26
SSH Key Fingerprint: SHA256:N3w+8798IMWBt7SYH8G1C0iJlIa2HIIcRCXwILT5FvM
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
a: (int, int) = (0, 1); a: (int, int) = (0, 1);
for i in range(0, 100) { for i in range(0, 100) {
a = (a[1], a[0] + a[1]); a = (a.1, a.0 + a.1);
print(int_to_str(a[0])+"\n"); print(int_to_str(a.0)+"\n");
} }

View File

@ -43,7 +43,7 @@ class TypeSpecification(TypeExpression):
types: List[TypeExpression] types: List[TypeExpression]
def represent(self) -> str: def represent(self) -> str:
return f'{self.type.represent()}<{', '.join([type.represent() for type in self.types])}>' return f"{self.type.represent()}<{', '.join([type.represent() for type in self.types])}>"
@dataclass @dataclass
class FunctionTypeExpr(TypeExpression): class FunctionTypeExpr(TypeExpression):