-
Notifications
You must be signed in to change notification settings - Fork 840
improve compiler error message for failed overload resolution #6596
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
KevinRansom
merged 96 commits into
dotnet:master
from
smoothdeveloper:overload-list-error-message
Feb 19, 2020
Merged
Changes from 1 commit
Commits
Show all changes
96 commits
Select commit
Hold shift + click to select a range
1f68b17
migrate (as a separate copy) fsharpqa tests that are going to be impa…
smoothdeveloper d0630a3
update the .bsl files
smoothdeveloper c01329f
remove comments that are handled by baseline files, update baseline f…
smoothdeveloper 56fbe7a
remove the migrated tests from fsharpqa tests
smoothdeveloper 632f8ee
need to be more careful when migrating those
smoothdeveloper bcd4068
testing if running the test with .fs instead of .fsx makes them work …
smoothdeveloper 55bc729
exclude migrated fsharpqa from dotnet core run
smoothdeveloper 823c53a
sample test in fsharpqa (can't run locally for now)
smoothdeveloper 9671f33
trying to make it green now.
smoothdeveloper 2eb3b56
checking if this path is covered by a test, trying to identify how to…
smoothdeveloper 7781572
* [MethodCalls.fs] Defining CallerArgs<'T> in, this replaces passing …
smoothdeveloper 81ef5f2
bit of refactoring of error message building logic during failed over…
smoothdeveloper 69cbc05
(buildfix) harmonizing .fsi/.fs right before commit doesn't always wo…
smoothdeveloper 9f47fee
trying to check what kind of things break loose when I change this
smoothdeveloper 41b219c
(minor) [ConstraintSolver.fs] revert space mishapps to reduce diff, p…
smoothdeveloper 7f73826
toward displaying the argument names properly (may fail some fsharpqa…
smoothdeveloper 0904de6
missing Resharper's Ctrl+Alt+V "introduce variable" refactoring @audu…
smoothdeveloper f1eadef
pretty print unresolved overloads without all the type submsumption p…
smoothdeveloper 9eb633a
Overload resolution error messages: things display like I want in fsi…
smoothdeveloper b49d285
adjust message for candidates overload
smoothdeveloper 6aaf2dd
Hijack the split phase for UnresolvedOverloading, remove the match on…
smoothdeveloper f66e082
updating existing failing baseline files that looks correct to me
smoothdeveloper 3f03717
quickfix for update.base.line.with.actuals.fsx so that it skips missi…
smoothdeveloper 389a804
(minor) minimize diff, typos, comments
smoothdeveloper dbe7a37
fix vsintegration tests affected by overload error message changes
smoothdeveloper f8e7428
merge issue unused variable warning
smoothdeveloper c51e25c
update the 12 fsharpqa migrated baseline with new error messages
smoothdeveloper 41f57e1
(minor) baseline update script
smoothdeveloper 51e3a0e
move System.Convert.ToString and System.Threading.Tasks.Task.Run test…
smoothdeveloper 76c9c59
* moving 3 fsharpqa tests to new test suite
smoothdeveloper b00175f
consolidate all string building logic in CompileOps.fs, fix remaining…
smoothdeveloper e64f4f6
update base lines
smoothdeveloper db5df8d
remove the migrated tests from fsharpqa
smoothdeveloper dce9b92
fix vstest error message
smoothdeveloper 36b6a13
fix env.lst, removed wrong one...
smoothdeveloper bf4ee09
update baselines of remaining tests
smoothdeveloper f45a218
adding one simple test with many overloads
smoothdeveloper ce65f30
appropriate /// comments on `CalledMeth` constructor arguments
smoothdeveloper 372a375
minimize diff / formatting
smoothdeveloper db26509
trim unused code
smoothdeveloper 46174af
add simple test, one message is interesting, mentioning parameter cou…
smoothdeveloper c2120f6
comment flaky test for now
smoothdeveloper ec6089c
code review on the `coerceExpr` function from @tihan, we can discard …
smoothdeveloper 4f51ad4
code formatting remarks on ConstraintSolver.fs/fsi
smoothdeveloper 2d27e63
(minor) formatting
smoothdeveloper 28f46ca
format known argument type / updating .bsl
smoothdeveloper 20abb54
update missing baseline
smoothdeveloper c5de0ac
update missing baselines
smoothdeveloper e08db81
update missing baseline
smoothdeveloper 628d8bc
minor: make TTrait better in debugger display
smoothdeveloper e2bc962
[wip] pass TraitConstraintInfo around failed overload resolution erro…
smoothdeveloper 4f70822
minimize diff
smoothdeveloper 138267f
signature file mismatch
smoothdeveloper ebf60fa
removing duplicate in fscomp.txt
smoothdeveloper 20a4cff
surfacing initial bits of TraitConstraintInfo, roughly for now
smoothdeveloper 5bb714a
formatting types of known argument in one go, the formatting is still…
smoothdeveloper 59f82b1
rework of overload failure message to prettify *ALL* types in a singl…
smoothdeveloper 7b8fdfc
fixup the tests and add two tests
smoothdeveloper a956bce
updating baselines that got tighter.
smoothdeveloper 8b102a0
simplify handling of TraitConstraintInfo
smoothdeveloper 8543f80
naming couple of fields and turning a property to a methods as it tri…
smoothdeveloper c5739e7
comments in the assembling of overload resolution error message
smoothdeveloper ade30f5
Add information about which argument doesn't match
smoothdeveloper 207a584
minor updates to testguide and devguide
smoothdeveloper 7ca85af
fix PrimitiveConstraints.``Invalid object constructor`` test
smoothdeveloper 723a293
fix(?) salsa tests
smoothdeveloper f0be1bb
minimize diff
smoothdeveloper 373f0f3
put back tests under !FSHARP_SUITE_DRIVES_CORECLR_TESTS
smoothdeveloper 4c7d525
missing updated message
smoothdeveloper 5408e4f
minor adjustments to TESTGUIDE.md
smoothdeveloper e8dc47b
return type was missing prettifying in prettyLayoutsOfUnresolvedOverl…
smoothdeveloper 99097a6
address code review nits / minimize diff / add comment on PrettifyDis…
smoothdeveloper 99c1230
minimize diff
smoothdeveloper 9f20d8f
proposed work around the flaky error message until https://github.com…
smoothdeveloper 45be9dc
fixing baselines of new tests from master
smoothdeveloper 18cbe3c
sisyphus round of baseline update
smoothdeveloper c7d8b13
removing type which isn't in use and popped back up after rebase
smoothdeveloper 209cc6c
minimize diff
smoothdeveloper 1f17d51
tidy inconsistent tuple literal
smoothdeveloper 90defce
* removing TTrait properties that end up not being used
smoothdeveloper d99015f
minimize diff
smoothdeveloper 3176d37
minimize diff
smoothdeveloper 97ebec3
minimize diff
smoothdeveloper 61478c2
link to usage example in same file
smoothdeveloper 304f505
revert converting CallerArg single cased DU into Record
smoothdeveloper 4352bad
minimize diff
smoothdeveloper f18a205
minimize diff
smoothdeveloper 7cf610d
minimize diff
smoothdeveloper 5eff584
fix rebase glitches
smoothdeveloper 0d99fef
fix rebase glitch
smoothdeveloper 95fe837
update baseline
smoothdeveloper 4141681
fix base lines / new tests base lines
smoothdeveloper 3042bda
edge case: needs a new line after "A unique overload for method '%s' …
smoothdeveloper e03f680
updating base line for edge case of missing new line
smoothdeveloper 1b0530d
missing baseline
smoothdeveloper 9ab9ea9
removing comment
smoothdeveloper 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
bit of refactoring of error message building logic during failed over…
…load resolution [ConstraintSolver.fsi] * define OverloadInformation and OverloadResolutionFailure, those replace workflow where `string * ((CalledMeth<_> * exn) list)` values were created at call site mixed with message building and matched later in non obvious fashion in `failOverloading` closure * adjust UnresolvedOverloading and PossibleOverload exceptions [ConstraintSolver.fs] * get rid of `GetPossibleOverloads`, this was used only in `failOverloading` closure, and just being passed the same parameters at call site * give `failOverloading` a more meaningful signature and consolidate the prefix message building logic there * fix `failOverloading` call sites [CompilerOps.fs] adjust pattern matching Expecting behaviour of this code to be identical as before PR `
- Loading branch information
commit 81ef5f20520360276480e991bb6da0f8130333a2
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
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
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.