Newer
Older
zweic / tests / 2 / mechant4.zwei
@glproj03 glproj03 on 23 Nov 2005 643 bytes loads of tests
class A extends B {
 //Check FieldDecl (-> also Formal)
 Int a;
 Int s;
 Null z;
 Object o;
 boolean b;

 //Check MethodDef
 Object method(Int i, Null n, Object oj) {
  //Check Block (->also Statement and Expression)
  while ( if ( i && !o) { return  b} else { return !b}) {
   b = true;
   boolean c = false;
   3+2;
   printInt (a);
   printChar("toto et titi c'est tjs joli");
  }

   // Expression
   if ( b) readInt else readChar;
   if (-b) true else false;
   if(a-b || c) null else ( a == b);
   if (-new x (3,"HelloWorld") * ! { while ( a==b) { 4 //Comment
   % 3 ;  }return "viveJava"} / b && c) null;


  return b
 }
}

7.a(b,c,d,e)