Skip to content

Add strict type checking in tuple #433

@namannimmo10

Description

@namannimmo10
def main():
  t: tuple[i32, str]
  t = (1, 2)

main()

This will generate an ASR, but actually should give an error that the second element is expected to be of str type.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions