lightning-kmp
lightning-kmp copied to clipboard
`assertIs<LNChannel<X>>` doesn't work as expected
The call only ensures that the value is of type LNChannel<Any>
According to the docs for assertIs:
Note that due to type erasure the type check may be partial (e.g.
assertIs<List<String>>(value)
only checks for the class beingList
and not the type of its elements because it's erased).
There was a related discussion here