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]: Bad sad error in SemanticAnalyzer #41101

Open
mindula opened this issue Jul 27, 2023 · 2 comments · May be fixed by #42796
Open

[Bug]: Bad sad error in SemanticAnalyzer #41101

mindula opened this issue Jul 27, 2023 · 2 comments · May be fixed by #42796
Assignees
Labels
Area/Compiler Priority/Blocker Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug

Comments

@mindula
Copy link
Contributor

mindula commented Jul 27, 2023

Description

Consider the following scenario,

Screen.Recording.2023-07-27.at.12.07.09.mov

This can also be seen when doing a bal build,

Screenshot 2023-07-27 at 12 13 32

Steps to Reproduce

var orders = [{buyer: "b1", price: 10}];

var buyers = from var {buyer, price} in orders group by var item = 

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

@mindula mindula added Type/Bug Area/Compiler Priority/Blocker Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. labels Jul 27, 2023
@KavinduZoysa
Copy link
Contributor

We can fix this issue by adding following check to this line.

(ownerSymTag & SymTag.PACKAGE) == SymTag.PACKAGE

But we need to check whether this is the correct approach or not.

@KavinduZoysa
Copy link
Contributor

KavinduZoysa commented Jul 27, 2023

Also this issue happens for let-clause too

@mindula mindula linked a pull request May 22, 2024 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Compiler Priority/Blocker Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug
Projects
Status: PR Sent
Development

Successfully merging a pull request may close this issue.

2 participants