You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default value in this example is treated as part of the "as type clause", which is wrong and probably because of the expression rule in complexType. One way to solve this could be to introduce a new typeExpression and copy over only the expression parts (e.g. without EQ) that are allowed in type expressions. That could also simplify the new / typeofis expression rules. We would have to deal with duplicate expression context classes though.
Public Sub Test(ByVal a As Integer, Optional foo As Object = Nothing)
End Sub
Edit: The create-declaration method in the declarationssymbollistener + the type annotation pass would have to be changed at least.
The text was updated successfully, but these errors were encountered:
ghost
added
bug
Identifies work items for known bugs
antlr
Issue is easier to resolve with knowledge of Antlr4
labels
Jun 5, 2016
The default value in this example is treated as part of the "as type clause", which is wrong and probably because of the expression rule in complexType. One way to solve this could be to introduce a new typeExpression and copy over only the expression parts (e.g. without EQ) that are allowed in type expressions. That could also simplify the new / typeofis expression rules. We would have to deal with duplicate expression context classes though.
Edit: The create-declaration method in the declarationssymbollistener + the type annotation pass would have to be changed at least.
The text was updated successfully, but these errors were encountered: