annotation on primary constructor blows up intellij

Dear Dev Team,

I am using scala with Guice and when I tried to set an annotation on the primary constructor it blew up intellij completely

here is the ticket:
http://www.jetbrains.net/jira/browse/SCL-618

code example:
class  DefaultControl @Inject() (representation:MyType) {}

could you please take a look?

Thank you

0
3 comments
Avatar
Permanently deleted user

I upgraded intellij and the scala plugin to 0.2.21944 and my problem went away ! Thank you so much for fixing it!

0
Avatar
Permanently deleted user

You're welcome. Actually, that was a parser issue.

With best regards,
Ilya

0

This fix has problems. So be careful.
According spec Annotation is:
'@' [Constr]
Constr is
{ArgumentExpr}

Example:
class Element @Annot() (x: Int)

According spec [@Annot() (x: Int)] - Annotation. But really only [@Annot()] is Annotation.

So be carefully until new realese. (Because it's produces bugs with parser, completion etc.)

Good luck.

0

Please sign in to leave a comment.