Skip to content

Fix exception when destructing an exception pattern in 410 + more flexible destruct >= 408#1169

Merged
voodoos merged 10 commits intoocaml:masterfrom
voodoos:no-destruct-on-excep-rebased
Sep 10, 2020
Merged

Fix exception when destructing an exception pattern in 410 + more flexible destruct >= 408#1169
voodoos merged 10 commits intoocaml:masterfrom
voodoos:no-destruct-on-excep-rebased

Conversation

@voodoos
Copy link
Copy Markdown
Collaborator

@voodoos voodoos commented Sep 4, 2020

Destruct on exception pattern:

  • Does nothing for ocaml < 408
  • Complete if possible for 408 <= ocaml < 411
  • Does nothing for ocaml >= 411

Todo:

  • make 411 behaviour on par with 408 to 410
  • Remove the -log-file parameters in tests

@voodoos voodoos changed the title Fix exception when destructing an exception pattern in 410 + more flexible destruct < 411 Fix exception when destructing an exception pattern in 410 + more flexible destruct >= 408 Sep 4, 2020
@voodoos voodoos marked this pull request as ready for review September 4, 2020 15:32
@voodoos voodoos requested a review from trefis September 4, 2020 15:33
@voodoos voodoos merged commit bc899fb into ocaml:master Sep 10, 2020
voodoos added a commit to voodoos/opam-repository that referenced this pull request Sep 16, 2020
CHANGES:

Wed Sep 16 15:00:42 CEST 2020

  + merlin binary
    - fix completion of pattern matchings with exception patterns (ocaml/merlin#1169)
    - delegate configuration reading to external programs via a simple protocol
    and create a new package `dot-merlin-reader` with a binary that reads
    `.merlin` files. (ocaml/merlin#1123, ocaml/merlin#1152)
rgrinberg pushed a commit to rgrinberg/merlin that referenced this pull request Oct 6, 2020
…l#1169)

* Filter or-patterns to remove exceptions

* Only allow completion for exception patterns for ocaml < 4.11

* Update test suite

* Always allow match completion  for ocaml > 411
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