def foo() {
return "correct"
}
class FooCaller {
def call () {
return foo() // блджад, мне не нужен this.foo()
}
def foo() {
return "incorrect"
}
}
println new FooCaller().call() // incorrect
© 2002 - 2025 Diary.ru
def foo() {
return "correct"
}
class FooCaller {
def call () {
return foo() // блджад, мне не нужен this.foo()
}
def foo() {
return "incorrect"
}
}
println new FooCaller().call() // incorrect