-
Notifications
You must be signed in to change notification settings - Fork 839
Warn on uppercase identifiers in patterns. #15816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
60127ac
Better error for match with a patterns referring to an out of scope i…
edgarfgp b852634
Lets find out
edgarfgp f599bca
Ok now I wish I did not know about this
edgarfgp 27f2a3c
update test
edgarfgp c8294ec
last one ?
edgarfgp 5d37156
Update error message to clarify the details of the historical hack.
edgarfgp bef94a2
Update more tests
edgarfgp 58834dc
update tests
edgarfgp 48fb2ff
more tests
edgarfgp b927f77
Merge branch 'main' into another-pat-matching-fix
edgarfgp 050c8c5
Merge branch 'main' into another-pat-matching-fix
edgarfgp fea45d5
comment id.idText.Length >= 3 to see what breaks
edgarfgp 47c287e
revert back the error message
edgarfgp 885b5ab
update tests
edgarfgp bd76c9d
release notes
edgarfgp d68843e
Add LanguageFeature flag
edgarfgp 110d417
release notes
edgarfgp 869acd5
Merge branch 'main' into another-pat-matching-fix
edgarfgp 6d4af0a
Merge branch 'another-pat-matching-fix' of github.com:edgarfgp/fsharp…
edgarfgp 7bf5163
format code
edgarfgp 7934bf3
reduce diff
edgarfgp 1554db9
LanguageFeature.WarnOnUppercaseIdentifiersInPatterns
edgarfgp 5a3cf90
Merge branch 'main' into another-pat-matching-fix
edgarfgp a3f4ae1
Merge branch 'main' into another-pat-matching-fix
edgarfgp 8f4643a
Merge branch 'main' into another-pat-matching-fix
edgarfgp 88f13a9
Merge branch 'main' into another-pat-matching-fix
edgarfgp b01b957
simplify tests
edgarfgp 0183998
more tests
edgarfgp 3d4cbb3
Merge branch 'main' into another-pat-matching-fix
edgarfgp 5236633
3874,chkVariablePatternUppercase,"Variable patterns should be lowerca…
edgarfgp 23b3a53
Merge branch 'another-pat-matching-fix' of github.com:edgarfgp/fsharp…
edgarfgp 68039fa
hasConstructorShape
edgarfgp 3be7320
Improve error message for match cases labels and update tests
edgarfgp 2f5d878
update fsharpqa tests
edgarfgp bf5ca00
more tests
edgarfgp 2865c6a
release notes entry
edgarfgp 0c50d4c
reduce diff
edgarfgp 8f69e67
update tests
edgarfgp d8b2f50
Merge branch 'main' into another-pat-matching-fix
edgarfgp 2f360bf
update tests
edgarfgp 1d3402a
Merge branch 'another-pat-matching-fix' of github.com:edgarfgp/fsharp…
edgarfgp 724dc0b
more tests
edgarfgp d4720cb
Merge branch 'main' into another-pat-matching-fix
edgarfgp 573a1a0
Do't want for WarnOnUpperVariablePatterns in preview
edgarfgp cd0521c
revert changes from MutableTuple
edgarfgp dd8a79c
revert changes from Query.fs
edgarfgp 792249a
Revert remaining changes
edgarfgp 34b42f9
format code
edgarfgp b8682b6
use TcTrueMatchClause instead of bool
edgarfgp cb71b1c
revert test changes
edgarfgp a294904
reverte changes on Query.fs
edgarfgp 1cb2c74
revert changes
edgarfgp 5597e60
allow all identifier pattern regardless its length in preview
edgarfgp 21bd69c
Merge branch 'main' into another-pat-matching-fix
edgarfgp 2330290
Preview: Don't warn on as named pattern
edgarfgp 7a44ead
Merge branch 'another-pat-matching-fix' of github.com:edgarfgp/fsharp…
edgarfgp 490b665
revert error message changes
edgarfgp e126d0a
Revert "update tests"
edgarfgp 1ec5c87
Revert "update fsharpqa tests"
edgarfgp f34f9a3
Rename LanguageFeature
edgarfgp 8244124
format code
edgarfgp 63c4c5d
Merge branch 'main' into another-pat-matching-fix
edgarfgp fbcf91f
Merge branch 'main' into another-pat-matching-fix
edgarfgp 698e3f2
Update src/Compiler/Checking/CheckPatterns.fs
edgarfgp 3adf463
PR review
edgarfgp 1379605
Add xml comments
edgarfgp 7a7ac5d
Merge branch 'main' into another-pat-matching-fix
edgarfgp 3484b51
Merge branch 'main' into another-pat-matching-fix
edgarfgp a4c35b9
Merge branch 'main' into another-pat-matching-fix
edgarfgp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -6,4 +6,4 @@ | |
|
|
||
| ### Changed | ||
|
|
||
| ### Breaking Changes | ||
| ### Breaking Changes | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.