it should be possible to add static extension func...
# language-proposals
b
it should be possible to add static extension functions to external classes that have no companion object (like Java objects). Use case:
Copy code
fun java.awt.Color.Companion.fromHex(hexString: String): Color {
    ...
}

...

val c = Color.fromHex("#123456")
👍 5