Skip to content

Commit

Permalink
add explanatory comments to test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
glennsl committed Jul 12, 2020
1 parent 000a0ed commit 29def12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/Components.re
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,13 @@ module LocallyAbstractType: {
};
};

// Test to make sure type annotations are accepted
module Pexp_constraint = {
let%component make: (~key: Key.t=?, unit) => element(node) =
((), hooks) => (empty, hooks);
};

// Test to make sure type annotations with universal quantifiers are accepted
module Ppat_constraint = {
let%component make: 'a. (~key: Key.t=?, unit) => element(node) =
((), hooks) => (empty, hooks);
Expand Down

0 comments on commit 29def12

Please sign in to comment.