added info about smart casts to diagnostic tests

This commit is contained in:
Svetlana Isakova
2013-12-06 20:12:41 +04:00
parent 00da5fe1fb
commit c30259dfbe
116 changed files with 383 additions and 348 deletions
@@ -5,6 +5,6 @@ trait MutableMap<K, V>: Map<K, V> {
fun p(p: Map<String, Int>) {
if (p is MutableMap<String, Int>) {
p[""] = 1
<!DEBUG_INFO_AUTOCAST!>p<!>[""] = 1
}
}
@@ -1,3 +1,4 @@
// !DIAGNOSTICS: -DEBUG_INFO_AUTOCAST
trait Either<out A, out B>
trait Left<out A>: Either<A, Nothing> {
val value: A
@@ -1,3 +1,4 @@
// !DIAGNOSTICS: -DEBUG_INFO_AUTOCAST
trait Either<out A, out B>
trait Left<out A>: Either<A, Nothing> {
val value: A
@@ -1,3 +1,4 @@
// !DIAGNOSTICS: -DEBUG_INFO_AUTOCAST
trait Either<out A, out B>
trait Left<out A>: Either<A, Nothing> {
val value: A