groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Champeau <cedric.champ...@gmail.com>
Subject Re: Possible bug in AstBuilder Antlr4
Date Wed, 23 May 2018 06:38:13 GMT
It cannot. However the GString templates look like scripts, which is why I
added an import in the first place. But then the builder fails with a
ClassCastException. I would have expected it to fail with a better error
message in this case, like "You're not allowed to use an import in a method
body".

Le mer. 23 mai 2018 à 08:34, Daniel.Sun <sunlan@apache.org> a écrit :

> Hi Cédric,
>
>      `import` statement can appear in a block?
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
>

Mime
View raw message