# state `this` explicitly as in `this.name` class Test get name as String return 'Cobra' def computeLength as int return .name.length def run n = this.name # .warning. unnecessary assert n=='Cobra' n = 'aoeu' def main is shared Test().run