mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +07:00
java highlighting tests moved to community
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
import java.util.*;
|
||||
|
||||
interface Base {
|
||||
}
|
||||
|
||||
class Derived implements Base {
|
||||
}
|
||||
|
||||
class X {
|
||||
void method(int i, Base b) { }
|
||||
void method(int i, Derived b) { }
|
||||
|
||||
{
|
||||
Derived d = new Derived();
|
||||
method(10, d);
|
||||
}
|
||||
}
|
||||
|
||||
class Temp<T> {}
|
||||
|
||||
class A {
|
||||
<error descr="'A(T)' clashes with 'A(T)'; both methods have same erasure">public <T extends Temp<String>> A(T list)</error> {}
|
||||
public <T extends Temp<Integer>> A(T list) {}
|
||||
}
|
||||
class B {
|
||||
public <T extends A> B(T list) {}
|
||||
public <T extends Temp<Integer>> B(T list) {}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////
|
||||
class IdeaBug {
|
||||
|
||||
static <T> T cloneMe(T arg) throws CloneNotSupportedException {
|
||||
return (T) arg.<error descr="'clone()' has protected access in 'java.lang.Object'">clone</error>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user