mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Kotlin: Add a test for annotation classes
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
| def.kt:2:1:2:31 | SomeAnnotation | Interface |
|
||||
| use.java:2:23:2:25 | use | Class |
|
||||
@@ -0,0 +1,5 @@
|
||||
import java
|
||||
|
||||
from ClassOrInterface x
|
||||
where x.fromSource()
|
||||
select x, x.getPrimaryQlClasses()
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
annotation class SomeAnnotation
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
public abstract class use implements SomeAnnotation {}
|
||||
|
||||
Reference in New Issue
Block a user