I am trying to port this java code: ``` public cla...
# getting-started
c
I am trying to port this java code:
Copy code
public class Foo {
    private final Predicate<File> isChild = file -> file != null && (roots.contains(file) || this.isChild.test(file.getParentFile()));
}
And I have
Copy code
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