When I am calling a method implemented from an int...
# javascript
e
When I am calling a method implemented from an interface (both default implementation or overridden in class) I get TypeError: x.x.x is not a function. Is implementing interfaces not supported yet? I am able to call other functions from that class.
a
show your code please
e
@andylamax
Copy code
@JsExport
class Email(
    var email: String
) : Validatable {

    override fun validate() = email.contains('@')
}

@JsExport
interface Validatable {
    fun validate(): Boolean
}
a
Are you using IR or Legacy backend? I am 98% this works on Legacy compiler
e
@andylamax IR, might explain