This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues or pull requests.
compilation/flap/tests/03-Typing/43-pattern-matching-07.good.typing.hopix.human-readable

5 lines
146 B
Text
Raw Normal View History

2023-11-15 19:08:33 +01:00
type or<`a, `b> = Left(`a) | Right(`b)
let x : int = match (Left<int, int>(22)) {
Left<int, int>((x : int)) | Right<int, int>((x : int)) -> x
}