-
-
Notifications
You must be signed in to change notification settings - Fork 932
Closed as not planned
Labels
Description
See this test case for a reproduction
function foo()In this following scope ids are equal:
- the root scope id
AstNode::scope_id(), when called on foo's declaration nodeSymbolTable::get_scope_id(), when called with foo'sSymbolId
Now, consider this snippet:
(function foo() {})()Here, the following scope ids are equal
- the root scope id
AstNode::scope_id(), when called on foo's declaration node
However, the symbol id obtained fromSymbolTable::get_scope_id()is not the same as the other two.
I'm not certain what expected behavior here is, whether foo should be considered in the root scope or not, but the scope id for its AstNode and for the Symbol should definitely be the same.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackPriority
None yet