JavaTXCompilerInJavaTX/resources/bytecode/javFiles/Generics.jav

17 lines
253 B
Plaintext
Raw Permalink Normal View History

2017-12-20 14:04:03 +00:00
class Generics<B> {
2018-01-10 10:36:29 +00:00
Generics(B b){
}
2017-12-20 14:04:03 +00:00
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");
*/