Skip to content

assertIs<LNChannel<X>> doesn't work as expected  #412

@robbiehanson

Description

@robbiehanson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions