aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/pertypewithin/A.java
blob: ca56105c691ba8694666fac84e272b4c4e6177ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package p;

// This class does *nothing* clever, but does match the advice in X

public class A {

  public A() {
  }

  public static void main(String[] argv) {
  	A anA = new A();
    anA.sayhi();
    anA.sayhi();
   
    System.err.println("Tests in A have passed");
  }

  public void sayhi() { System.err.println("hi from A"); }

}