java highlighting tests moved to community

This commit is contained in:
Alexey Kudravtsev
2010-06-25 12:46:38 +04:00
parent 7ec040c1ec
commit 735a9d17a8
243 changed files with 22082 additions and 0 deletions
@@ -0,0 +1,33 @@
class clazz1 {
clazz1(int... args) { args = null; }
public static class Myclazz1 extends clazz1 {}
}
class AmbiguousReference {
void test() {
doSomething<error descr="Ambiguous method call: both 'AmbiguousReference.doSomething(String, Number...)' and 'AmbiguousReference.doSomething(Number...)' match">(null, 1)</error>;
}
void doSomething(String s, Number... n) {
s+=n;
}
void doSomething(Number... n) {
n.hashCode();
}
}
class OK {
protected void fff() {
find("");
}
public void find(String queryString) {
queryString.hashCode();
}
public void find(final String queryString, final Object... values) {
queryString.hashCode();
values.hashCode();
}
}