class super {} class sub1 extends super {} class sub2 extends sub1 {} // Method class MethodTest { sub1 twiceSameVar(sub1 a, sub2 b, super a) { return new sub1() } } 0