Is there a way to specify `isPreN` so that the com...
# android
m
Is there a way to specify
isPreN
so that the compiler can infer SDK availability? I tried
inline val
but that doesn’t seem to do anything. I also tried
inline fun
which does work but then there is a warning about impacting on performance. Regardless, why doesn’t
inline val
work?
Copy code
val isPreN
    get() = VERSION.SDK_INT < VERSION_CODES.N