dimsuz
02/04/2022, 1:59 PMsealed class Product { // OK
sealed class Card : Product() { // OK
data class CreditCard(...): Card() // Inacessible from swift
}
}
The problem is that CreditCard
is not visible from Swift code, while its parents are visible.
Is this a known problem? Are there any workarounds?russhwolf
02/04/2022, 3:31 PMProduct.CardCreditCard
instead of Product.Card.CreditCard
.dimsuz
02/04/2022, 3:46 PM.h
file either...Grégory Lureau
02/04/2022, 4:26 PMsealed class
without putting them all in brackets:
sealed class Product
sealed class Card : Product()
data class CreditCard(...): Card()
Inheritance is preserved (but the class name is indeed different).dimsuz
02/04/2022, 4:30 PMGrégory Lureau
02/04/2022, 4:48 PMdimsuz
02/04/2022, 4:49 PM