For a function that returns Unit, the autogenerato...
# announcements
d
For a function that returns Unit, the autogenerator for java code lets it return null. For example this:
Copy code
new Function0<Unit>() {
            @Override
            public Unit invoke() {
                return null;
            }
Is this ok or should I always change it to return
Copy code
Unit.INSTANCE
?