Closed JSAbrahams closed 2 years ago
When giving a class a tuple type, we get a type error where we expect an identifier. Instead, this should be interpreted as a type.
Compile: class MyTuple: (Int, Int, String) Get error:
class MyTuple: (Int, Int, String)
[error | type] Expected identifier, was type 1 | class MyTuple: (Int, Int, String) ^
Class should be a tuple type with the relevant types.
Description of Bug
When giving a class a tuple type, we get a type error where we expect an identifier. Instead, this should be interpreted as a type.
How to Reproduce
Compile:
class MyTuple: (Int, Int, String)
Get error:Expected behavior
Class should be a tuple type with the relevant types.