Update test about conversions, remove irrelevant case
This commit is contained in:
@@ -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)
|
||||
}
|
||||
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user