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 12b9323 commit 56f92ef
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 @@ -243,11 +243,13 @@ module ShouldAllowComponentProp = {
);
};

// 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 56f92ef

Please sign in to comment.