deprecating types after colon

This commit is contained in:
Dmitry Jemerov
2015-04-21 18:32:31 +02:00
parent b7a4b3c17d
commit f374eec8f1
268 changed files with 1055 additions and 769 deletions
@@ -1,11 +1,13 @@
// !CHECK_TYPE
package n
import java.util.*
fun test() {
val foo = arrayList("").map { it -> it.length() }.fold(0, { x, y -> Math.max(x, y) })
foo : Int
<!TYPE_MISMATCH!>foo<!> : String
checkSubtype<Int>(foo)
checkSubtype<String>(<!TYPE_MISMATCH!>foo<!>)
}
//from library