changed tests where autocasts aren't needed but are reported

due to KT-4294
This commit is contained in:
Svetlana Isakova
2013-12-09 17:10:22 +04:00
parent c30259dfbe
commit 33c04bde9a
2 changed files with 8 additions and 6 deletions
@@ -12,15 +12,16 @@ trait C: A
fun test(a: A, b: B, c: C) {
if (a is B && a is C) {
val d: C = id(a)
val d: C = id(<!DEBUG_INFO_AUTOCAST!>a<!>)
val e: Any = id(a)
val f = id(a)
f: A
val g = two(a, b)
val g = two(<!DEBUG_INFO_AUTOCAST!>a<!>, b)
g: B
g: A
val h: Any = two(a, b)
// auto cast isn't needed, but is reported due to KT-4294
val h: Any = two(<!DEBUG_INFO_AUTOCAST!>a<!>, b)
val k = three(a, b, c)
k: A