Regression test #KT-9529 Obsolete

This commit is contained in:
Mikhail Glukhikh
2016-01-28 12:56:12 +03:00
parent 6ac52d19ac
commit 12b100c541
3 changed files with 17 additions and 0 deletions
@@ -0,0 +1,8 @@
// See KT-9529 Smart cast causes code to be incompilable
fun <T : Any> foo(o: T): Collection<T> {
if (o is String) {
return listOf(o)
}
return listOf(o)
}
@@ -0,0 +1,3 @@
package
public fun </*0*/ T : kotlin.Any> foo(/*0*/ o: T): kotlin.collections.Collection<T>