Is there any way to silence this compiler error? ...
# javascript
b
Is there any way to silence this compiler error?
Copy code
Error (51, 5): Kotlin: Overriding `external` function with optional parameters
b
Why do you want to do it? Could you please provide more information about the your case?
b
I want to implement a “blackhole” subclass of
HTMLElement
that I can pass to things that require a non-null one, so that any operations on it are ignored. In attempting to implement its
convertPointFromNode
function, I am given that error, since the abstract function has optional parameters. This is in
GeometryUtils
of
org.w3c.dom.kt
, line 3788
b
Thank you, we'll investigate it!
1
a
so ?
b
Restriction is still there, but you can override
convertPointFromNode
and other members of
HTMLElement
.
👍 1