mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Kotlin: handle default parameter values inherited from an overridden function
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
| test.kt:3:8:3:28 | f(...) | test.kt:3:8:3:28 | f | test.kt:1:1:5:1 | A |
|
||||
| test.kt:11:21:11:23 | f$default(...) | test.kt:3:8:3:28 | f$default | test.kt:1:1:5:1 | A |
|
||||
@@ -0,0 +1,13 @@
|
||||
open class A {
|
||||
|
||||
open fun f(x: Int = 0) = x
|
||||
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
|
||||
override fun f(x: Int) = x + 1
|
||||
|
||||
fun user() = this.f()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
import java
|
||||
|
||||
from MethodAccess ma
|
||||
select ma, ma.getCallee(), ma.getCallee().getDeclaringType()
|
||||
Reference in New Issue
Block a user