Original type is taken into account when intersecting possible types in resolve #KT-10232 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-11-30 17:36:12 +03:00
committed by Stanislav Erokhin
parent db2521ee67
commit fe04cc513b
5 changed files with 39 additions and 2 deletions
@@ -38,7 +38,7 @@ fun <T : CharSequence?> foo(x: T) {
<!DEBUG_INFO_SMARTCAST!>x<!>.length
x<!UNNECESSARY_SAFE_CALL!>?.<!>length
<!DEBUG_INFO_SMARTCAST!>x<!>.bar1()
x.bar1()
x.bar2()
<!DEBUG_INFO_SMARTCAST!>x<!>.bar3()
}