Skip to content

Commit 0a2a8e9

Browse files
committed
C#: Add attribute test for the OverloadResolutionAttribute attribute class.
1 parent a6d16e7 commit 0a2a8e9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
| attributes.cs:168:17:168:17 | M | attributes.cs:167:6:167:31 | [OverloadResolutionPriority(...)] | -1 |
2+
| attributes.cs:171:17:171:17 | M | attributes.cs:170:6:170:31 | [OverloadResolutionPriority(...)] | 1 |
3+
| attributes.cs:174:17:174:17 | M | attributes.cs:173:6:173:31 | [OverloadResolutionPriority(...)] | 2 |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import csharp
2+
import semmle.code.csharp.frameworks.system.runtime.CompilerServices
3+
4+
from
5+
Attributable element, SystemRuntimeCompilerServicesOverloadResolutionPriorityAttribute attribute
6+
where attribute = element.getAnAttribute() and attribute.fromSource()
7+
select element, attribute, attribute.getPriority()

0 commit comments

Comments
 (0)