-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
(Reported by a PV student:)
method test() {
{
var i: Int
}
var i: Int
}
This causes an AST construction error for the second declaration of i, because it is seen as a duplicate. This is a little strange, and I would expect either:
- The error to be associated with the inner
i, because the outer declaration is hoisted to the beginning of the outer scope. - There to be no error, because when the outer
iis declared, the inneriis no longer in scope.
Metadata
Metadata
Assignees
Labels
No labels