class Klass {
    function method(x : int) : int {
        if (x == 0) {   // compiler complains that x is not initialized
            return 1;
        }
        else {
            var x = 2;
            return x;
        }
    }
}
