Fix tests ('infix')
This commit is contained in:
+3
-1
@@ -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
|
||||
}
|
||||
}
|
||||
+1
@@ -2,3 +2,4 @@ package
|
||||
|
||||
public fun bar(/*0*/ a: kotlin.Number): kotlin.Int
|
||||
public fun foo(/*0*/ a: kotlin.Number): kotlin.Int
|
||||
public infix fun kotlin.Int.compareTo(/*0*/ o: kotlin.Int): kotlin.Int
|
||||
|
||||
Reference in New Issue
Block a user