Fix tests ('infix')

This commit is contained in:
Yan Zhulanow
2015-09-30 21:27:45 +03:00
parent 7e8674c6ee
commit 1b01e7a85a
65 changed files with 146 additions and 132 deletions
@@ -1,5 +1,7 @@
// !CHECK_TYPE
infix fun Int.compareTo(<!UNUSED_PARAMETER!>o<!>: Int) = 0
fun foo(a: Number): Int {
val result = (a as Int) compareTo <!DEBUG_INFO_SMARTCAST!>a<!>
checkSubtype<Int>(<!DEBUG_INFO_SMARTCAST!>a<!>)
@@ -10,4 +12,4 @@ fun bar(a: Number): Int {
val result = 42 compareTo (a as Int)
checkSubtype<Int>(<!DEBUG_INFO_SMARTCAST!>a<!>)
return result
}
}