Newer
Older
zweic / tests / 4 / 04.zwei
@ajaggi ajaggi on 26 Dec 2005 196 bytes Added some test cases
  1. class A {
  2. Int x;
  3. }
  4.  
  5. class B {
  6. Int x;
  7. Int equal(B that) {
  8. return this.x == that.x
  9. }
  10. }
  11.  
  12. class C extends B{
  13. }
  14.  
  15. {
  16. printInt(new B(1).equal(new C(2)));
  17. printChar(10);
  18. }