https://kotlinlang.org logo
#javascript
Title
# javascript
s

Seth Madison

09/29/2023, 10:23 PM
Does anybody happen to know if there’s already a bug open for this problem:
Copy code
@JsExport
sealed class Foo {
  abstract val bar: Boolean
  
  data class AFoo(override val bar: Boolean) : Foo()
}
AFoo
will come out with a mangled
bar
.
1
a

Artem Kobzar

10/01/2023, 11:35 AM
Oh, wow. I'm not sure, that we know about it. Could you please create the ticket?
e

Edoardo Luppi

10/01/2023, 1:29 PM
Not exactly related, but two other issues mention similar
sealed
problems https://youtrack.jetbrains.com/issue/KT-39193 https://youtrack.jetbrains.com/issue/KT-52800 Maybe looking at one of them will solve every one of them 👀