Skip to content

added UnsafeUnion type - #50

Merged
KotlinIsland merged 1 commit into
mainfrom
unsafe-union-type
Jul 24, 2026
Merged

added UnsafeUnion type#50
KotlinIsland merged 1 commit into
mainfrom
unsafe-union-type

Conversation

@KotlinIsland

Copy link
Copy Markdown
Owner

UnsafeUnion[A, B] is a gradual type whose materializations are exactly A and B: a union in target position, an intersection in source position. it is what an ambiguous overload call now evaluates to instead of Unknown, so the menu of possible returns survives.

`UnsafeUnion[A, B]` is a gradual type whose materializations are exactly
`A` and `B`: a union in target position, an intersection in source
position. it is what an ambiguous overload call now evaluates to instead
of `Unknown`, so the menu of possible returns survives.
@KotlinIsland
KotlinIsland merged commit 9a4b1e1 into main Jul 24, 2026
50 of 52 checks passed
@KotlinIsland
KotlinIsland deleted the unsafe-union-type branch July 24, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant