c2nes / javalang

Pure Python Java parser and tools
MIT License
727 stars 160 forks source link

Error while parsing something like '(Annotation[]::new)' #139

Open alexreply opened 10 months ago

alexreply commented 10 months ago

When calling 'javalang.parse.parse' on something like '(Annotation[]::new)', it raises JavaSyntaxError "Expected '.'" , the parse is expecting a '.' between the '[]' and 'new'