Navigate to source when functions differ only in upper bounds of type parameters.

This commit is contained in:
Evgeny Gerashchenko
2013-01-10 13:52:18 +04:00
parent 9d4447e3ae
commit 27bbca7fe4
5 changed files with 83 additions and 4 deletions
@@ -13,6 +13,10 @@ package testData.libraries
[public val <T> testData.libraries.Pair<T, T>.exProp : jet.String] /* compiled code */
[public fun <T : jet.CharSequence> funWithTypeParam(t : T) : Unit { /* compiled code */ }]
[public fun <T : jet.Number> funWithTypeParam(t : T) : Unit { /* compiled code */ }]
[public fun func() : Unit { /* compiled code */ }]
[public fun func(cs : jet.CharSequence) : Unit { /* compiled code */ }]
+8 -1
View File
@@ -109,4 +109,11 @@ public class Double
public fun processDouble(d: Double) {}
public fun processDouble(d: jet.Double) {}
public fun processDouble(d: jet.Double) {}
public fun <T: CharSequence> funWithTypeParam(t: T) {
}
public fun <T: Number> funWithTypeParam(t: T) {
}
@@ -0,0 +1,12 @@
import testData.libraries.*
fun main(args: Array<String>) {
funWithTypeParam(1)
funWithTypeParam("")
}
// main.kt
//public fun <T: CharSequence> <2>funWithTypeParam(t: T) {
//}
//
//public fun <T: Number> <1>funWithTypeParam(t: T) {