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/42-pattern-matching-06.bad.typing.hopix.human-readable

3 lines
116 B
Text
Raw Normal View History

2023-11-15 19:08:33 +01:00
type option<`a> = None | Some (`a)
let x : int = match (Some<int>(42)) { Some<int>((_ : int)) | None<string> -> 0 }