hello.. when I try using Int.countOneBits() in com...
# multiplatform
w
hello.. when I try using Int.countOneBits() in commonMain project I get this error: Task y collectionscompileKotlinJvm FAILED, Unresolved reference: countOneBits. It’s weird because the function is there in NumbersJVM.kt, it delegates to the JVM function Integer.bitCount(this), any idea?
Ok I forgot that kotlinOptions.apiVersion was set to 1.3 and -based on the documentations- countOneBits() is 1.4, targeting 1.4 solved the issue.