Skip to content

When pattern matching on GADTs, abstract (phantom) types are not considered structurally different from concrete ones #7360

@vicuna

Description

@vicuna

Original bug ID: 7360
Reporter: rlepigre
Status: resolved (set by @damiendoligez on 2016-09-28T12:18:15Z)
Resolution: won't fix
Priority: normal
Severity: minor
Version: 4.03.0
Category: typing
Duplicate of: #7028
Related to: #5985
Monitored by: @gasche @yallop

Bug description

A GADT which uses abstract types (or phantom types defined in another module) leads to problems with pattern matching exhaustiveness checking. See the examples.

Steps to reproduce

Just call "ocaml" on the example files.

File attachments

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions