From e2eb7d5e84b71d6cc97b271aa731ec699fe0b43c Mon Sep 17 00:00:00 2001 From: Daniil Ovchinnikov Date: Tue, 27 Nov 2018 12:56:20 +0300 Subject: [PATCH] [groovy] enable the test for IDEA-194192 --- .../GrLatestHighlightingTest.groovy | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/highlighting/GrLatestHighlightingTest.groovy b/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/highlighting/GrLatestHighlightingTest.groovy index d00b50380f75..c4962ba6801c 100644 --- a/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/highlighting/GrLatestHighlightingTest.groovy +++ b/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/highlighting/GrLatestHighlightingTest.groovy @@ -560,24 +560,16 @@ void foo() { ''' } -//TODO: IDEA-194192 - void '_test call without reference with generics'() { - testHighlighting ''' -import groovy.transform.CompileStatic - + void 'test call without reference with generics'() { + testHighlighting '''\ class E { - def Map call(Map m) { - m - } - E bar() {null} + def Map call(Map m) { m } } -static Map getMap() { - return new HashMap() -} +static Map getMap() { null } -@CompileStatic -def com() { +@groovy.transform.CompileStatic +def usage() { Map correct = new E()(getMap().withDefault({ 0 })) } '''