mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Kotlin: give external extension properties with matching name and file distinct trap filenames
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
| user.kt:3:22:3:22 | getF(...) | lib/lib/TestKt.class:0:0:0:0 | getF |
|
||||
| user.kt:3:28:3:28 | getF(...) | lib/lib/TestKt.class:0:0:0:0 | getF |
|
||||
@@ -0,0 +1,7 @@
|
||||
package lib
|
||||
|
||||
val String.f
|
||||
get() = 1
|
||||
|
||||
val Int.f
|
||||
get() = 2
|
||||
@@ -0,0 +1,4 @@
|
||||
from create_database_utils import *
|
||||
|
||||
runSuccessfully(["kotlinc", "test.kt", "-d", "lib"])
|
||||
run_codeql_database_create(["kotlinc user.kt -cp lib"], lang="java")
|
||||
@@ -0,0 +1,4 @@
|
||||
import java
|
||||
|
||||
from MethodAccess ma
|
||||
select ma, ma.getCallee()
|
||||
@@ -0,0 +1,3 @@
|
||||
import lib.f
|
||||
|
||||
fun test() = "hello".f + 1.f
|
||||
Reference in New Issue
Block a user