lightning-kmp icon indicating copy to clipboard operation
lightning-kmp copied to clipboard

`assertIs<LNChannel<X>>` doesn't work as expected

Open robbiehanson opened this issue 2 years ago • 0 comments

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 being List and not the type of its elements because it's erased).


There was a related discussion here

robbiehanson avatar Nov 23 '22 15:11 robbiehanson