escodro
02/19/2021, 1:25 PMinternal inline class CategoryId(val value: Long?)
fun test(){
CategoryId(12)
}
Warning: Use Long.valueOf(12) insteadMichiel Vermeersch
02/19/2021, 1:30 PM12Lescodro
02/19/2021, 1:30 PMAdam
02/19/2021, 1:32 PMescodro
02/19/2021, 1:38 PMUse Long.valueOf(null) insteadAdam
02/19/2021, 1:58 PMKotlin: kotlinc-jvm 1.4.30 (JRE 11.0.5+10-LTS)
Kotlin: The feature "inline classes" is experimentalAdam
02/19/2021, 1:59 PMinline, but nothing about Long. Must be somewhere else.araqnid
02/19/2021, 2:48 PMLong.valueOf(12) call rather than new Long(12) (which is what that warning sounds to be about), so I don’t see where it’s coming from (tbh I can’t even tell what tool it’s coming from)