Navigate to source when functions differ only in upper bounds of type parameters.
This commit is contained in:
@@ -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 */ }]
|
||||
|
||||
@@ -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) {
|
||||
Reference in New Issue
Block a user