- Notifications
You must be signed in to change notification settings - Fork 401
Open
Labels
enhancementFeature request (that does not concern language semantics, see "language")Feature request (that does not concern language semantics, see "language")
Description
At the moment, instanceof checks do only work for classes that extend js.Object. Unfortunately case classes must not extend js.Object.
Motivation (copied from Gitter): I would like to define Scala ADTs (represented by sealed traits plus cases classes) by TypeScript union types. A common pattern for exhaustiveness checks in TypeScript is to use flow typing with instanceof checks.
Metadata
Metadata
Assignees
Labels
enhancementFeature request (that does not concern language semantics, see "language")Feature request (that does not concern language semantics, see "language")