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
|
||||
@@ -0,0 +1,7 @@
|
||||
public class AutoGeneratedOverloads {
|
||||
public static void foo() {
|
||||
k.KPackage.<caret>withJvmOverloads(0);
|
||||
}
|
||||
}
|
||||
|
||||
// REF: (in k).withJvmOverloads(Int,Boolean,String)
|
||||
@@ -47,4 +47,9 @@ trait TraitWithImpl {
|
||||
fun foo() = 1
|
||||
}
|
||||
|
||||
public class TraitWithDelegatedWithImpl(f: TraitWithImpl): TraitWithImpl by f
|
||||
public class TraitWithDelegatedWithImpl(f: TraitWithImpl) : TraitWithImpl by f
|
||||
|
||||
kotlin.jvm.overloads
|
||||
public fun withJvmOverloads(i: Int, b: Boolean = false, s: String="hello") {}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user