extensionsUtils.kt uses FuzzyType + more correct treatment of receiver nullability there

This commit is contained in:
Valentin Kipyatkov
2014-12-03 16:05:10 +03:00
parent 418b16e766
commit dfd5e773df
12 changed files with 143 additions and 111 deletions
@@ -0,0 +1,7 @@
fun<T> T.doSomething(t: T): T = t
fun foo(s: String?) {
s.<caret>
}
// EXIST: { itemText: "doSomething", tailText: "(t: String?) for T in <root>", typeText: "String?" }
@@ -0,0 +1,7 @@
fun<T> T.doSomething(t: T): T = t
fun foo(s: String?) {
s?.<caret>
}
// EXIST: { itemText: "doSomething", tailText: "(t: String) for T in <root>", typeText: "String" }