Skip to content

Commit

Permalink
extend test a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
zth committed Jun 25, 2023
1 parent 0eddf31 commit ad9e031
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
13 changes: 12 additions & 1 deletion jscomp/test/record_type_spread.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion jscomp/test/record_type_spread.res
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,13 @@ let x: rnAsString = {
module DeepSub = {
type t<'a, 'b> = {
x: result<'a, 'b>,
}
z: [#One | #Two('a) | #Three('b)],
}
type d = {
...t<int, int>,
}
let d: d = {
x: Ok(1),
z: #Two(1),
}
}

0 comments on commit ad9e031

Please sign in to comment.