Skip to content

Commit 1b8e8c3

Browse files
committed
Fix sole remaining example test failure
Generic attributes will be valid in the future (and Roslyn knows that), so the error code has changed.
1 parent 2833c15 commit 1b8e8c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

standard/attributes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ A generic class declaration shall not use `System.Attribute` as a direct or indi
2020

2121
> *Example*:
2222
>
23-
> <!-- Example: {template:"standalone-lib", name:"AttributeCantBeGeneric", expectedErrors:["CS8652"], ignoredWarnings:["CS0169"]} -->
23+
> <!-- Example: {template:"standalone-lib", name:"AttributeCantBeGeneric", expectedErrors:["CS8936"], ignoredWarnings:["CS0169"]} -->
2424
> ```csharp
2525
> public class B : Attribute {}
2626
> public class C<T> : B {} // Error – generic cannot be an attribute

0 commit comments

Comments
 (0)