For those of you who's really interested in latein...
# announcements
m
For those of you who's really interested in lateinit vals with final backing fields, here's a neat hack that may help you:
Copy code
// NullHack.java
public class NullHack {
    private NullHack() {
    }

    @SuppressWarnings("ConstantConditions")
    @NotNull
    public static <T> T notNull() {
        return null;
    }
}
Copy code
// NullHack.kt
inline fun <reified T> notNull(): T = NullHack.notNull<T>()
😶 1