-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
F#: Chars can only contain one character (#1570)
This PR fixes #1480.
- Loading branch information
1 parent
bfa5a8d
commit f96b083
Showing
4 changed files
with
41 additions
and
2 deletions.
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,37 @@ | ||
let foo' = failWith "foo" | ||
|
||
let bar' = failWith "bar" | ||
|
||
let map (f: 'a -> 'b) (xs: 'a list): 'b list = failWith "not implemented" | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["keyword", "let"], " foo' ", ["operator", "="], " failWith ", ["string", "\"foo\""], | ||
["keyword", "let"], " bar' ", ["operator", "="], " failWith ", ["string", "\"bar\""], | ||
|
||
["keyword", "let"], | ||
" map ", | ||
["punctuation", "("], | ||
"f", | ||
["punctuation", ":"], | ||
" 'a ", | ||
["operator", "-"], | ||
["operator", ">"], | ||
" 'b", | ||
["punctuation", ")"], | ||
["punctuation", "("], | ||
"xs", | ||
["punctuation", ":"], | ||
" 'a list", | ||
["punctuation", ")"], | ||
["punctuation", ":"], | ||
" 'b list ", | ||
["operator", "="], | ||
" failWith ", | ||
["string", "\"not implemented\""] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for apostrophes in names. See #1480. |
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