Newer
Older
zweic / tests / 4 / term-select.zwei
@ajaggi ajaggi on 26 Dec 2005 364 bytes Added some test cases
  1. // Select
  2.  
  3. class foo {
  4. Int y;
  5. }
  6.  
  7. class bar {
  8. Int h;
  9. Null foo() {
  10. foo f = new foo(1);
  11. this.h; // success in returning own attributes
  12. k.h; // 1/2 failure of clauses 1 and 2 (nonexistent ident)
  13. bar h = new bar(1); // success of recursive class definition
  14. f.x; // 2/2 failure of clause 3
  15. f.y; // success
  16. }
  17. }
  18.  
  19. 1