C#: Add enum init value test

This commit is contained in:
Tamas Vajk
2020-09-22 08:42:06 +02:00
parent 20c4d94ccc
commit a6b62a3838
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
/**
* @name Test for enums
*/
import csharp
from FieldAccess fa
where fa.getParent().(Field).getDeclaringType() instanceof Enum
select fa, fa.getValue()