[groovy] enable the test for IDEA-194192

This commit is contained in:
Daniil Ovchinnikov
2018-11-27 12:59:29 +03:00
parent 67ac69f683
commit e2eb7d5e84
@@ -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 <K,V> Map<K, V> call(Map<K, V> m) {
m
}
E bar() {null}
def <K,V> Map<K, V> call(Map<K, V> m) { m }
}
static <K,V> Map<K, V> getMap() {
return new HashMap<K,V>()
}
static <K,V> Map<K, V> getMap() { null }
@CompileStatic
def com() {
@groovy.transform.CompileStatic
def usage() {
Map<String, Integer> correct = new E()(getMap().withDefault({ 0 }))
}
'''