Incompatible types comparison inspection for Groovy?
Hi, Idea shows no warning for constructions like:
if (1 == "2") {
//...
}
in Groovy code even with @CompileStatic or @TypeChecked. There is a "Incompatible type assignments" inspection for Groovy, but I wasn't able to find its equivalent for comparison.
Is there an inspection which detect (potentially) incompatible types compatison?
Marcin
请先登录再写评论。
Hi Marcin,
I've created an issue http://youtrack.jetbrains.com/issue/IDEA-125752
Cheers,
Max
Thanks Maxim.
Marcin