chb0kotlin
02/07/2018, 1:50 AMpublic class Foo {
private final Predicate<File> isChild = file -> file != null && (roots.contains(file) || this.isChild.test(file.getParentFile()));
}
And I have
class Foo {
private val isChild:(File) -> Boolean = { f -> roots.contains(f) || isChild(f.parentFile)}
}
The problem I am having is that it is saying 'isChild must be initialized' I don't get the same problem in java it's initialized with the instance