forked from JavaTX/JavaCompilerCore
Test geändert
This commit is contained in:
parent
57f35605f6
commit
f9bfe6fb44
@ -179,7 +179,7 @@ public class Class extends SyntaxTreeNode implements AClassOrInterface, IItemWit
|
|||||||
GenericTypeVar newGTV=new GenericTypeVar(gname,this,0);
|
GenericTypeVar newGTV=new GenericTypeVar(gname,this,0);
|
||||||
gtvs.add(newGTV);
|
gtvs.add(newGTV);
|
||||||
}
|
}
|
||||||
this.genericClassParameters = new GenericDeclarationList(gtvs,0);
|
this.setGenericParameter(new GenericDeclarationList(gtvs,0));
|
||||||
}
|
}
|
||||||
|
|
||||||
public Class(String name, RefType superClass, Modifiers mod, int offset){
|
public Class(String name, RefType superClass, Modifiers mod, int offset){
|
||||||
|
@ -2,8 +2,8 @@ import java.util.Vector;
|
|||||||
|
|
||||||
class ImportTest{
|
class ImportTest{
|
||||||
Vector<String> var;
|
Vector<String> var;
|
||||||
var2;
|
|
||||||
methode(){
|
methode(var2){
|
||||||
var.add(var2);
|
var.add(var2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
class LambdaTest{
|
class LambdaTest{
|
||||||
|
|
||||||
Fun1<String, String> op = (var) -> {return var;};
|
Fun1<String, String> op = (var) -> {
|
||||||
|
var2;
|
||||||
|
var2 = var;
|
||||||
|
return var;
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
@ -11,7 +11,7 @@ public class LambdaTest4 {
|
|||||||
@Test
|
@Test
|
||||||
public void run(){
|
public void run(){
|
||||||
Vector<String> mustContain = new Vector<String>();
|
Vector<String> mustContain = new Vector<String>();
|
||||||
//mustContain.add("String var");
|
mustContain.add("String var2;");
|
||||||
MultipleTypesInsertTester.test(this.TEST_FILE, mustContain);
|
MultipleTypesInsertTester.test(this.TEST_FILE, mustContain);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
class OverloadingInMethod2{
|
class OverloadingInMethod2{
|
||||||
|
|
||||||
<ABM, T11702297201, ABL extends ABM, R1702297201 extends ABL, C extends T11702297201> Fun1<? extends Fun1<? extends ABM, ? super Fun1<R1702297201, T11702297201>>, ? super C> m () {
|
<ABG, T11702297201, ABL extends ABG, R1702297201 extends ABL, C extends T11702297201> Fun1<? extends Fun1<? extends ABG, ? super Fun1<R1702297201, T11702297201>>, ? super C> m () {
|
||||||
Fun1<? extends Fun1<? extends ABM, ? super Fun1<R1702297201, T11702297201>>, ? super C> op;
|
Fun1<? extends Fun1<? extends ABG, ? super Fun1<R1702297201, T11702297201>>, ? super C> op;
|
||||||
op = (m) -> (f) -> f.apply(m);
|
op = (m) -> (f) -> f.apply(m);
|
||||||
return op;
|
return op;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user