mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
IDEA-106964
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
import java.io.Serializable;
|
||||
|
||||
public abstract class Test {
|
||||
|
||||
abstract <T> T test(Class<T> cls);
|
||||
|
||||
abstract <T> T test(Serializable type);
|
||||
|
||||
private void call(){
|
||||
<error descr="Incompatible types. Found: 'java.lang.String[]', required: 'java.lang.String'">String s = test(String[].class);</error>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user