This repository has been archived by the owner on Nov 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue where
let x:t = ...
is treated differently in .res
syntax.
- Loading branch information
1 parent
b43ec9b
commit 07786e9
Showing
5 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* @flow strict | ||
* @generated from LetWithType.res | ||
* @nolint | ||
*/ | ||
/* eslint-disable */ | ||
|
||
// $FlowExpectedError: Reason checked type sufficiently | ||
import * as LetWithTypeBS from './LetWithType.bs'; | ||
|
||
export opaque type style = mixed; | ||
|
||
export const white: style = LetWithTypeBS.white; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
module Style = { | ||
type rec t = | ||
| WHITE | ||
| LIGHT | ||
| GRAY | ||
| CUSTOM(string) | ||
} | ||
|
||
include Style | ||
|
||
@genType.opaque | ||
type rec style = t | ||
|
||
@genType | ||
let white: style = WHITE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters