Lower priority for extensions on own type parameters

This commit is contained in:
Valentin Kipyatkov
2015-08-12 22:29:07 +03:00
parent 9e26d0eacf
commit 000d2f0cd1
8 changed files with 50 additions and 10 deletions
@@ -12,4 +12,4 @@ fun f(pair: Pair<out Any, out Any>) {
// EXIST: { lookupString: "hashCode", attributes: "bold" }
// EXIST: { lookupString: "forString", attributes: "grayed" }
// EXIST: { lookupString: "forAny", attributes: "bold" }
// EXIST: { lookupString: "forT", attributes: "bold" }
// EXIST: { lookupString: "forT", attributes: "" }
@@ -0,0 +1,11 @@
fun <T> List<T>.forListT(){}
fun <T> Collection<T>.forCollectionT(){}
fun <T> T.forT() {}
fun foo(list: List<String>) {
list.<caret>
}
// EXIST: { itemText: "forListT", attributes: "bold" }
// EXIST: { itemText: "forCollectionT", attributes: "" }
// EXIST: { itemText: "forT", attributes: "" }