Add origin for generated jvm overloads and tweak equals methods to distinguish them
- KT-7586 Strange navigation issue #KT-7586 Fixed
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import test.kotlin.A;
|
||||
|
||||
import static test.kotlin.KotlinPackage.foo;
|
||||
|
||||
class JvmOverloadsFunctions {
|
||||
public static void main(String[] args) {
|
||||
A a = new A() { };
|
||||
|
||||
foo(a.getClass(), a, true, "Some");
|
||||
foo(a.getClass(), a, true);
|
||||
foo(a.getClass(), a);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package test.kotlin
|
||||
|
||||
trait A
|
||||
|
||||
kotlin.jvm.overloads
|
||||
public fun foo<T : A>(k: Class<T>, a: A, b: Boolean = false, s: String="hello"): List<T> {
|
||||
println("$b $s")
|
||||
return listOf()
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
// WITH_RUNTIME
|
||||
Reference in New Issue
Block a user