-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement target-typed-new feature (#39658)
* Rebase target-typed-new branch on top of master * Fix formatting * Move method * Adjust baseline * Revert formatting * Fix switch label binding * Revert code * Clarify diagnostics * Update resources * Add comment * Revert code * Explicit type parsing mode to avoid superfluous diagnostics * Bind to natrual type so the node cannot sneak into a later pass * Clarify comment on binary operator resolution * Add suggested tests * Update compiler test plan * Fix tuple equality * Fix typo * Test conditional access * Renamings * Fixup merge * Fixup tests * Update resources * Regenerate compiler code * Fixup merge * Revert code * Capture use-site diagnostics * Tweaks * Fix formatting * Address PR feedback on tests * Undo accidental insertion * Fix build * Use Display string for every argument expression * Update baseline * Update resources * Permit throw new() usage * Add wasTargetTyped flag for object creation node * PR feedback * Fix merge * Revert nullable enable * Argument list is not optional in new()
- Loading branch information
Showing
63 changed files
with
7,803 additions
and
602 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,6 +209,7 @@ a[e] | |
x++ | ||
x-- | ||
new X() | ||
new() | ||
typeof(T) | ||
default(T) | ||
default | ||
|
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
384 changes: 209 additions & 175 deletions
384
src/Compilers/CSharp/Portable/Binder/Binder_Expressions.cs
Large diffs are not rendered by default.
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
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
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
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
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
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
Oops, something went wrong.