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

Primitive type common ancestor in If expression #70

Open
tmteam opened this issue Apr 18, 2023 · 0 comments
Open

Primitive type common ancestor in If expression #70

tmteam opened this issue Apr 18, 2023 · 0 comments
Assignees
Labels
invalid This doesn't seem right Tic Type inference calculator has to be changed

Comments

@tmteam
Copy link
Owner

tmteam commented Apr 18, 2023

y = if (true) false else 12

Expected:

y:any == false

Actual:

Error: TicIncompatibleAncestorSyntaxNodeException : Incompatible ancestor 2:[U8..Re]Re!=>3:Bo
@tmteam tmteam added invalid This doesn't seem right Tic Type inference calculator has to be changed labels Apr 18, 2023
@tmteam tmteam self-assigned this Apr 18, 2023
tmteam added a commit that referenced this issue Apr 18, 2023
tmteam added a commit that referenced this issue Apr 18, 2023
tmteam added a commit that referenced this issue Apr 30, 2023
tmteam added a commit that referenced this issue Jul 1, 2023
tmteam added a commit that referenced this issue Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right Tic Type inference calculator has to be changed
Projects
None yet
Development

No branches or pull requests

1 participant