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:
Nikolay Krasko
2015-04-28 16:19:45 +03:00
parent 536b30af20
commit 90cdb19324
10 changed files with 104 additions and 29 deletions
@@ -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