mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[groovy] enable the test for IDEA-194192
This commit is contained in:
+6
-14
@@ -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 }))
|
||||
}
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user