-
Notifications
You must be signed in to change notification settings - Fork 471
Closed
Labels
staleOld issues that went staleOld issues that went stale
Description
This works:
type x = {id: string}
@unboxed type xOrArray = X(x) | Array(array<x>)but this doesn't:
type rec x = {id: string}
@unboxed and xOrArray = X(x) | Array(array<x>)It gives the error
This untagged variant definition is invalid: Case X has a payload that is not of one of the recognized shapes (object, array, etc). Then it must be the only case with payloads.
(I came across the problem when creating type definitions for JSON schema.)
Metadata
Metadata
Assignees
Labels
staleOld issues that went staleOld issues that went stale