Newer
Older
zweic / tests / four / method00-8.zwei
@glproj03 glproj03 on 28 Dec 2005 437 bytes wicked cool test file added: script.sh
// zweic - test program for method typing
// M. Ganguin, J. Ruffin 2005

class foo {}
class bar extends foo {}
class baz extends bar {}

// Method

class MethodTest {
    Null varScopeTest(Int a, foo f) {
        Int b = a; // success of clause 6 (parameter in variable scope)
        foo g = f; // success of clause 6 (parameter in variable scope)
        MethodTest m = this; // success of clause 6 (this in variable scope)
    }
}

0