Test geändert

This commit is contained in:
JanUlrich 2015-02-03 15:58:04 +01:00
parent 57f35605f6
commit f9bfe6fb44
5 changed files with 11 additions and 7 deletions

View File

@ -179,7 +179,7 @@ public class Class extends SyntaxTreeNode implements AClassOrInterface, IItemWit
GenericTypeVar newGTV=new GenericTypeVar(gname,this,0);
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){

View File

@ -2,8 +2,8 @@ import java.util.Vector;
class ImportTest{
Vector<String> var;
var2;
methode(){
methode(var2){
var.add(var2);
}

View File

@ -1,5 +1,9 @@
class LambdaTest{
Fun1<String, String> op = (var) -> {return var;};
Fun1<String, String> op = (var) -> {
var2;
var2 = var;
return var;
};
}

View File

@ -11,7 +11,7 @@ public class LambdaTest4 {
@Test
public void run(){
Vector<String> mustContain = new Vector<String>();
//mustContain.add("String var");
mustContain.add("String var2;");
MultipleTypesInsertTester.test(this.TEST_FILE, mustContain);
}

View File

@ -1,8 +1,8 @@
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 () {
Fun1<? extends Fun1<? extends ABM, ? super Fun1<R1702297201, T11702297201>>, ? super C> op;
<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 ABG, ? super Fun1<R1702297201, T11702297201>>, ? super C> op;
op = (m) -> (f) -> f.apply(m);
return op;
}