Skip to content

Commit cc0d99a

Browse files
committed
C#: Add attibute test examples for properties and indexers.
1 parent 076dd07 commit cc0d99a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

csharp/ql/test/library-tests/attributes/attributes.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ public class MyAttributeUsage
108108
[return: My3Attribute(6)]
109109
public static int operator +(MyAttributeUsage a, MyAttributeUsage b) => 0;
110110

111+
[My3Attribute(15)]
111112
public int this[int x]
112113
{
113114
[My3Attribute(7)]
@@ -120,6 +121,7 @@ public int this[int x]
120121
}
121122

122123
private int p;
124+
[My3Attribute(16)]
123125
public int Prop1
124126
{
125127
[method: My3Attribute(11)]

0 commit comments

Comments
 (0)