dodalovic
07/09/2018, 3:55 PMtopLevelFun() = Unit
class Foo {
bar() {
//
}
baz() = println("baz")
}
Ruckus
07/09/2018, 4:10 PMdodalovic
07/09/2018, 4:14 PMRuckus
07/09/2018, 4:19 PMAll discussion in this channel should begin with a use-case or proposal instead of a question.
dodalovic
07/09/2018, 4:20 PMdodalovic
07/09/2018, 4:20 PMRuckus
07/09/2018, 4:24 PMgildor
07/09/2018, 4:25 PMRuckus
07/09/2018, 4:27 PMAndreas Sinz
07/09/2018, 4:28 PMclass Foo {
bar() {
}
fun bar(f: () -> Unit) { ... }
}
benleggiero
07/09/2018, 4:42 PMclass Foo {
Val _baz = Baz()
bar() : Baz {
return _baz
}
qux() {
hoge() // new local function returning Unit?
bar() = Baz() // Syntax error trying to call bar(), or or shadowing it?
}
}
class Baz