aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs162/pr241047/SomeBaseClass.java
blob: 957b69e82addb6664f6bdd613962bb78b9520efa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
public class SomeBaseClass<Type extends Object> {

 public void tag_someBaseMethod() {
  System.out.println("some base method");
 }

 public static void main(String[] args) {
  new SomeBaseClass<Object>().tag_someBaseMethod();
  new SomeSubClass().tag_someMethod(); // this does not match correctly...
//  System.out.println("");

  new SomeBaseClass2<Object>().tag_someBaseMethod();
  new SomeSubClass2().tag_someMethod();
//  System.out.println("");

  new SomeBaseClass3().tag_someBaseMethod();
  new SomeSubClass3().tag_someMethod();
 }
}