Added tests for obsolete tasks

This commit is contained in:
Svetlana Isakova
2015-06-10 19:32:58 +03:00
parent 690a46bbb4
commit 086e69e132
24 changed files with 326 additions and 0 deletions
@@ -0,0 +1,11 @@
// !CHECK_TYPE
fun foo(s : String?, b : Boolean) {
if (s == null) return
val s1 = if (b) "" else <!DEBUG_INFO_SMARTCAST!>s<!>
s1 checkType { _<String>() }
val s2 = s
<!DEBUG_INFO_SMARTCAST!>s2<!> checkType { _<String>() }
}
@@ -0,0 +1,3 @@
package
internal fun foo(/*0*/ s: kotlin.String?, /*1*/ b: kotlin.Boolean): kotlin.Unit