mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
IDEA-94990: java 6 bug workaround
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
class Test {
|
||||
public <T> T doStuff() {
|
||||
return null;
|
||||
}
|
||||
public boolean test() {
|
||||
<error descr="Incompatible types. Found: 'java.lang.Object', required: 'boolean'">return doStuff();</error>
|
||||
}
|
||||
|
||||
public Boolean test1() {
|
||||
return doStuff();
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
class Test {
|
||||
public <T> T doStuff() {
|
||||
return null;
|
||||
}
|
||||
public boolean test() {
|
||||
return doStuff();
|
||||
}
|
||||
|
||||
public Boolean test1() {
|
||||
return doStuff();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user