Julien Couvreur
e8ddd37721
Remove value type restriction on nullable suppressions
...
A recent issue prompted me to double-check this: https://github.com/dotnet/roslyn/issues/57142
Original design decision: https://github.com/dotnet/roslyn/issues/29907
2021-10-19 16:57:48 -07:00
Bill Wagner
1ea4383736
Clarify matching members prevents synthesized members ( #5187 )
...
Fixes #5186
2021-09-14 14:08:44 -04:00
Rikki Gibson
73dc536d4d
Remove new handling of nullable value types in method type argument inference ( #5138 )
2021-09-13 11:25:30 -07:00
Bill Wagner
a4c9db9a69
Address docs build warnings ( #5102 )
...
* fix docs suggestions
There are two different types of changes in this PR:
- H1s should use ATX headers (`#`)
- tables should have a header row that is not empty.
* replace docs links with source
This addresses another docs build warning. The docs build system flags absolute links to the pages on docs.microsoft.com as warnings, which should be replaced with relative links. This fix changes the link to the source doc on GitHub. I'm currently looking for a better solution.
* Revert "replace docs links with source"
This reverts commit b40cfc9632
.
2021-08-23 14:33:02 -04:00
Bill Wagner
0e4b7363ec
fix build warnings in docs ( #5018 )
...
Most of the fixes are updating links to sections of the spec so that they work correctly.
Other fixes include semantic markdown:
- exactly 1 H1 heading in each file.
- ATX style headers.
2021-08-10 17:27:10 -04:00
Fred Silberberg
1dbcfb485c
Remove no longer needed proposal status checkboxes. ( #4977 )
2021-07-28 16:14:48 -07:00
Rikki Gibson
fe65068f74
Call EnsureSufficientExecutionStack in PrintMembers ( #4951 )
2021-07-20 16:47:57 -07:00
Julien Couvreur
cbc7d18430
Update docs for positional fields and hidden positional members ( #4673 )
2021-04-23 10:13:05 -07:00
C-xC-c
38c6ed3b57
Rename record equality parameters to 'left' and 'right' ( #4555 )
...
Co-authored-by: Jack Tyrer <jack@tyrer.dev>
2021-03-19 10:32:09 -07:00
Alex Buck
d910cfa1f4
Fix misspelled word in init.cs ( #4542 )
2021-03-16 08:08:09 -07:00
Youssef Victor
93404fdb73
Fix PrintMembers return type ( #4464 )
2021-02-24 12:27:05 -08:00
Julien Couvreur
1f5b1dc19d
Record decisions for record structs ( #4437 )
2021-02-18 10:12:23 -08:00
Fred Silberberg
6ab8409a32
Function pointer type inference ( #4310 )
2021-01-25 11:08:11 -08:00
Julien Couvreur
a9b70c6ee1
Spec for record structs ( #4307 )
2021-01-16 16:11:06 -08:00
Zhenwei Wu
6c631c0f39
Fix minor error in proposal that affects docs ( #4239 )
...
dotnet/docs#21969 .
2020-12-16 08:29:22 -08:00
Jared Parsons
1eef8e0f64
NRT spec updates ( #4126 )
...
* NRT spec updates
This makes the following updates to the NRT spec
- Examples for scenarios that commonly trip up customers
- Clarification on when expressions have the null state "maybe default"
vs. "maybe null"
- Minor langauge cleanup
* PR feedback
* PR feedback
2020-11-17 12:32:02 -08:00
Julien Couvreur
00d9d791b6
Refresh NRT spec ( #4104 )
2020-11-09 21:26:43 -08:00
Julien Couvreur
29df547564
Fork NRT speclet ( #4100 )
2020-11-04 12:05:09 -08:00
Fred Silberberg
22ab7021c3
Add init
accessors in readonly struct
s and readonly
properties ( #3915 )
2020-11-02 12:55:26 -08:00
Youssef Victor
7125a8428a
Fix typo (is -> if) ( #4091 )
2020-10-31 11:56:08 -07:00
Julien Couvreur
b2b83eed29
Disallow unsafe types for record parameters ( #4077 )
2020-10-29 22:17:22 -07:00
Charles Stoner
9807f9b2e2
Add proposals/csharp-9.0/unconstrained-type-parameter-annotations.md ( #4043 )
2020-10-26 13:19:24 -07:00
Julien Couvreur
0d9762aa9f
Allow semi-colon after block body for record declarations ( #4060 )
...
Since we allow `class C { };`
2020-10-23 10:52:39 -07:00
Petr Kulikov
94b8189f4a
Covariant returns - typo fixes ( #4045 )
2020-10-21 10:30:43 -04:00
WhiteBlackGoose
7014365bd8
System.StringBuilder -> System.Text.StringBuilder ( #3976 )
2020-10-06 07:59:50 -07:00
Damien Guard
23c9e13493
Add missing ,
to record_base rule ( #3972 )
2020-10-05 09:49:56 -07:00
Damien Guard
6bfe301e79
Update records to correct pubic
to public
( #3971 )
2020-10-05 08:04:38 -07:00
Youssef Victor
b2699bff42
Update native integers conversions ( #3941 )
2020-09-25 09:45:17 -07:00
Julien Couvreur
3f901fa303
Exclude static fields and setter-only properties from PrintMembers ( #3919 )
2020-09-21 10:19:52 -07:00
Youssef Victor
ad94ce8053
Update records spec ( #3918 )
2020-09-21 09:56:09 -07:00
AlekseyTs
d6109bf586
Clarify that a copy constructor doesn't prevent an automatic addition of a default instance constructor for a record. ( #3913 )
2020-09-21 05:31:23 -07:00
AlekseyTs
a87af899c0
Allow record's parameter_list
to be empty. ( #3900 )
...
* Allow record's `parameter_list` to be empty.
Based on https://github.com/dotnet/csharplang/blob/master/meetings/2020/LDM-2020-08-24.md#base-calls-on-parameterless-records
2020-09-18 10:13:26 -07:00
Neal Gafter
2661a4b395
Change to 7.5.4.2 Grammar Ambiguities in patterns spec to support type pattern.
2020-09-16 11:32:32 -07:00
Neal Gafter
fcf884f7f8
Update pattern spec for narrowed type of ITuple pattern ( #3891 )
...
Fixes https://github.com/dotnet/roslyn/issues/44102
2020-09-16 09:27:34 -07:00
Youssef Victor
ca09fc178f
Update records spec with new warning ( #3883 )
...
* Update records spec with new warning
* Update proposals/csharp-9.0/records.md
Co-authored-by: Fred Silberberg <fred@silberberg.xyz>
Co-authored-by: Fred Silberberg <fred@silberberg.xyz>
2020-09-11 16:07:40 -07:00
Youssef Victor
9fb76a990c
Grammar fixes ( #3827 )
...
Co-authored-by: Fred Silberberg <fred@silberberg.xyz>
2020-09-10 09:57:50 -07:00
Bill Wagner
8df4f29c1c
fix broken link ( #3865 )
...
The path is needed for the spec link
2020-09-09 09:36:14 -07:00
Youssef Victor
d52960a47b
Fix broken link ( #3861 )
2020-09-09 09:35:31 -07:00
Julien Couvreur
c3df20406f
Document features shipping in C# 9.0 ( #3850 )
2020-09-08 11:17:39 -07:00
Christopher Watford
7cf8d52977
Restore missing code example ( #3862 )
...
Follow on to eade6b9#diff-c5d292723e1e43121acb1f8360545e53
2020-09-08 09:25:42 -07:00
Charles Stoner
cc11a3bb7a
Recent updates for native integers ( #3856 )
2020-09-08 09:18:46 -07:00
Youssef Victor
95adf054b9
Add H1 to convariant returns ( #3846 )
2020-09-04 11:14:13 -07:00
Neal Gafter
ac14d87c16
Update spec for covariant returns. ( #3843 )
2020-09-03 16:57:07 -07:00
Fredric Silberberg
3213aa0993
Update incorrect examples.
2020-08-26 10:18:18 -07:00
Fredric Silberberg
3e179c04d4
Address PR feedback:
...
1. Simplify the parameter/return requirements.
2. Clarify the intent around invalid imported metadata.
2020-08-25 17:10:34 -07:00
Fredric Silberberg
55df4c7f82
Update with feedback
2020-08-25 16:44:57 -07:00
Fredric Silberberg
7ff6cb3bb7
Clarify the rules on UnmanagedCallersOnly
2020-08-25 15:48:55 -07:00
Julien Couvreur
f38867ee6e
Avoid boxing and extra space when printing records
2020-08-24 13:34:27 -07:00
Fred Silberberg
5d40e91f04
Use clearer terminology
2020-08-21 13:30:51 -07:00
Genevieve Warren
06ee75e6e3
Fix/remove broken links ( #3801 )
...
* Fix broken link
* Update module-initializers.md
* Update module-initializers.md
* Update target-typed-new.md
* Make link relative
Co-authored-by: Youssef Victor <31348972+Youssef1313@users.noreply.github.com>
* Update proposals/csharp-9.0/module-initializers.md
Co-authored-by: Bill Wagner <wiwagn@microsoft.com>
Co-authored-by: Youssef Victor <31348972+Youssef1313@users.noreply.github.com>
Co-authored-by: Bill Wagner <wiwagn@microsoft.com>
2020-08-21 11:08:25 -04:00