Added test for "Can't navigate to sources of the filter() extension function"

#KT-1681can't reproduce
This commit is contained in:
Evgeny Gerashchenko
2012-04-04 18:54:09 +04:00
parent 53b6218878
commit 9b04e85282
4 changed files with 13 additions and 2 deletions
@@ -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 */ }]
+5 -1
View File
@@ -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 }
}