Skip to content

Commit e8266a8

Browse files
committed
Add coverage for generic attributes
1 parent 0613672 commit e8266a8

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Comprehensive supports C# 1 through 10.0 with the following exceptions:
5151

5252
#### C# 11.0 (under development)
5353

54-
- [ ] Generic attributes
54+
- [x] Generic attributes
5555
- [x] Static abstract members in interfaces
5656
- [x] Newlines in string interpolations
5757
- [ ] List patterns

corpus/attributes.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,4 +315,22 @@ void A() { }
315315
(void_keyword)
316316
(identifier)
317317
(parameter_list)
318+
(block))))
319+
320+
=======================================
321+
Generic attribute
322+
=======================================
323+
[Theory<About,Life>]
324+
void A() { }
325+
326+
---
327+
328+
(compilation_unit
329+
(global_statement
330+
(local_function_statement
331+
(attribute_list
332+
(attribute (generic_name (identifier) (type_argument_list (identifier) (identifier)))))
333+
(void_keyword)
334+
(identifier)
335+
(parameter_list)
318336
(block))))

0 commit comments

Comments
 (0)