Interface implemented by groovy trait are not resolved
This is my sample code.
interface A{
public void action()
}
trait B implemets A{
public void action(){//do something}
}
class C implemets A,B{
//IntelliJ Report a error that this class did not yet implemets method action()
}
I dont know is there any way to solve this? Or how can I disable the error warning?
请先登录再写评论。
Hi Alex,
Is your groovy file under source root?
I have a similar and possibly related problem with 14.1.1 build 141.178 in a Grails 3.0.1 project. IntelliJ complains that I need to implement all the methods in the trait.
class LoginCmd implements Validateable { ... }
trait Validateable { Errors getErrors() {..} }
No. The trait is in another project and complied into a jar.
but in each project, they are under the source root
OK, I've reproduced the bug
Please, follow the IDEA-139580