mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
InferenceSession#isOverloadCheck: take parentheses into account
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// "Cast parameter to 'java.util.Map<Foo,Bar>'" "true"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
class X {
|
||||
void run(Foo single) {}
|
||||
void run(Map<Foo, Bar> map) {}
|
||||
|
||||
void test(Bar bar) {
|
||||
run((Map<Foo, Bar>) Collections.singletonMap(getFoo(), bar));
|
||||
}
|
||||
|
||||
native Foo getFoo();
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Cast parameter to 'java.util.Map<Foo,Bar>'" "true"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
class X {
|
||||
void run(Foo single) {}
|
||||
void run(Map<Foo, Bar> map) {}
|
||||
|
||||
void test(Bar bar) {
|
||||
run((Map<Foo, Bar>) Collections.singletonMap(getFoo(), bar));
|
||||
}
|
||||
|
||||
native Foo getFoo();
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Cast parameter to 'java.util.Map<Foo,Bar>'" "true"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
class X {
|
||||
void run(Foo single) {}
|
||||
void run(Map<Foo, Bar> map) {}
|
||||
|
||||
void test(Bar bar) {
|
||||
run(Collections.<caret>singletonMap(getFoo(), bar));
|
||||
}
|
||||
|
||||
native Foo getFoo();
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Cast parameter to 'java.util.Map<Foo,Bar>'" "true"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
class X {
|
||||
void run(Foo single) {}
|
||||
void run(Map<Foo, Bar> map) {}
|
||||
|
||||
void test(Bar bar) {
|
||||
run((Collections.<caret>singletonMap(getFoo(), bar)));
|
||||
}
|
||||
|
||||
native Foo getFoo();
|
||||
}
|
||||
Reference in New Issue
Block a user