Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: typeof <varName> === Type Does not work as expected for Tuple Type #43311

Open
rdulmina opened this issue Aug 22, 2024 · 0 comments
Open
Assignees
Labels
Area/JVMCodeGen JVM code generation module Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug

Comments

@rdulmina
Copy link
Contributor

rdulmina commented Aug 22, 2024

Description

The below sample prints false where it should print true

type A [int, string];

public function main() {
    A a = [1, "hello"];
    io:println(typeof a === A);
}

Steps to Reproduce

No response

Affected Version(s)

No response

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@rdulmina rdulmina added Type/Bug Area/JVMCodeGen JVM code generation module Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Reason/EngineeringMistake The issue occurred due to a mistake made in the past. labels Aug 22, 2024
@rdulmina rdulmina self-assigned this Aug 22, 2024
@rdulmina rdulmina added the Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime label Aug 22, 2024
@rdulmina rdulmina moved this to Planned for Sprint in Ballerina Team Main Board Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/JVMCodeGen JVM code generation module Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug
Projects
Status: Planned for Sprint
Development

No branches or pull requests

1 participant