Newer
Older
zweic / tests / four / statement-while.zwei
@glproj03 glproj03 on 28 Dec 2005 303 bytes wicked cool test file added: script.sh
// While
class WhileTest {
    Null foo() {
        Int t = 0;
        Null n = null;
        while(n) {} // 1/2 failure of clause 1 (condition type not Int)
        while(t) { Int s = null; } // 2/2 failure of clause 2 (incorrectly typed statement)
        while(t) { Int s = 0; } // correct
    }
}

1