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/46-pattern-matching-10.good.typing.hopix.human-readable

5 lines
154 B
Text
Raw Permalink Normal View History

2023-11-15 19:08:33 +01:00
type p<`a, `b> = P(`a, `b)
let x : int = match (P<int, int>(22, 33)) {
P<int, int>((x : int), (_ : int)) & P<int, int>((_ : int), (y : int)) -> x + y
}