Added test for "Can't navigate to sources of the filter() extension function"
#KT-1681can't reproduce
This commit is contained in:
@@ -20,3 +20,5 @@ package testData.libraries
|
||||
[final fun func(val a : jet.Int, val b : jet.String) : Unit { /* compiled code */ }]
|
||||
|
||||
[final fun main(val args : jet.Array<jet.String>) : Unit { /* compiled code */ }]
|
||||
|
||||
[final fun <T : jet.Any?>T.filter(val predicate : (T) -> jet.Boolean) : T? { /* compiled code */ }]
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package testData.libraries
|
||||
|
||||
import java.util.*
|
||||
|
||||
trait SimpleTrait {
|
||||
}
|
||||
|
||||
@@ -89,4 +91,6 @@ fun func(a : Int, b : Int) {
|
||||
}
|
||||
|
||||
fun func() {
|
||||
}
|
||||
}
|
||||
|
||||
inline fun <T> T.filter(predicate: (T)-> Boolean) : T? = this
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package testData.libraries
|
||||
|
||||
import java.util.*
|
||||
|
||||
trait SimpleTrait {
|
||||
}
|
||||
|
||||
@@ -89,4 +91,6 @@ fun <13>func(a : Int, b : Int) {
|
||||
}
|
||||
|
||||
fun <14>func() {
|
||||
}
|
||||
}
|
||||
|
||||
inline fun <T> T.<17>filter(predicate: (T)-> Boolean) : T? = this
|
||||
|
||||
@@ -21,4 +21,5 @@ fun main(args : Array<String>) : Unit {
|
||||
func()
|
||||
|
||||
WithInnerAndObject.foo()
|
||||
5.filter { it % 2 == 1 }
|
||||
}
|
||||
Reference in New Issue
Block a user