Update test about conversions, remove irrelevant case

This commit is contained in:
Mikhail Zarechenskiy
2020-02-11 13:31:46 +03:00
parent 1acce46133
commit e14e58c121
3 changed files with 2 additions and 6 deletions
@@ -50,5 +50,6 @@ fun test() {
takeUBytes(IMPLICIT_INT, EXPLICIT_INT, 42u)
takeLong(IMPLICIT_INT)
// such kind of conversions (Int <-> Long) actually are not supported
// takeLong(IMPLICIT_INT)
}
@@ -101,5 +101,3 @@ FILE fqName:<root> fileName:/signedToUnsignedConversions_test.kt
CALL 'public final fun <get-IMPLICIT_INT> (): kotlin.Int declared in <root>' type=kotlin.Int origin=null
CALL 'public final fun <get-EXPLICIT_INT> (): kotlin.Int declared in <root>' type=kotlin.Int origin=null
CONST Long type=kotlin.Long value=42
ERROR_CALL 'Unresolved reference: <Inapplicable(INAPPLICABLE): [/takeLong]>#' type=IrErrorType
CALL 'public final fun <get-IMPLICIT_INT> (): kotlin.Int declared in <root>' type=kotlin.Int origin=null
@@ -122,6 +122,3 @@ FILE fqName:<root> fileName:/signedToUnsignedConversions_test.kt
TYPE_OP type=kotlin.UByte origin=IMPLICIT_INTEGER_COERCION typeOperand=kotlin.UByte
CALL 'public final fun <get-EXPLICIT_INT> (): kotlin.Int declared in <root>' type=kotlin.Int origin=GET_PROPERTY
CONST Byte type=kotlin.UByte value=42
CALL 'public final fun takeLong (l: kotlin.Long): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
l: TYPE_OP type=kotlin.Long origin=IMPLICIT_INTEGER_COERCION typeOperand=kotlin.Long
CALL 'public final fun <get-IMPLICIT_INT> (): kotlin.Int declared in <root>' type=kotlin.Int origin=GET_PROPERTY