import java.lang.String; class Generics { // A mt1(A a, B b){ B mt1(B a, B b){ return mt1(a, a); } } class Test { methode(String s){ return new Generics().mt1(s,s); } } /* Problem: auto test = new List(); auto test2 = new List(); ... //code, welcher möglicherweise test und test2 vertauscht test.add("hallo"); */