You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short of using an import alias I wasn't able to make the following work in a KMP project that has the JVM as one of its targets:
importde.cketti.codepoints.deluxe.CodePointimportde.cketti.codepoints.deluxe.codePointAtfunmain() {
val stringBuilder =StringBuilder().append("a")
// Type mismatch: inferred type is Int but CodePoint was expectedval codePoint:CodePoint= stringBuilder.codePointAt(0)
}
It looked fine in the IDE, but failed when compiling the JVM project.
Explicitly adding a StringBuilder extension function with the @kotlin.internal.HidesMembers annotation din't work either.
Short of using an import alias I wasn't able to make the following work in a KMP project that has the JVM as one of its targets:
It looked fine in the IDE, but failed when compiling the JVM project.
Explicitly adding a
StringBuilder
extension function with the@kotlin.internal.HidesMembers
annotation din't work either.Changing the names of the extension functions would avoid this problem. The question is what names to chose.
The text was updated successfully, but these errors were encountered: