frellan
11/11/2018, 3:48 PMobject CachedDB {
val Foods = object {
fun loadAll(): List<Food> = ...
}
}
I want to be able to call that function like this CachedDB.Foods.loadAll()
but I can’t
Do I have to move it all into a separate file?russhwolf
11/11/2018, 3:49 PMobject Foods { ... }
instead of val Foods = object { ... }
Shawn
11/11/2018, 3:50 PMShawn
11/11/2018, 3:50 PMobject CachedDB {
object Foods {
fun loadAll(): List<Food> = TODO()
}
}
frellan
11/11/2018, 3:50 PM