17 lines
253 B
Plaintext
17 lines
253 B
Plaintext
|
|
||
|
class Generics<B> {
|
||
|
Generics(B b){
|
||
|
}
|
||
|
B mt1(B b){
|
||
|
return mt1(b);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
/*
|
||
|
Problem:
|
||
|
auto test = new List<String>();
|
||
|
auto test2 = new List<Integer>();
|
||
|
... //code, welcher möglicherweise test und test2 vertauscht
|
||
|
test.add("hallo");
|
||
|
*/
|