Postpone ApproximateIntegerLiteralTypesInReceiverPosition feature till 1.7

^KT-38895
This commit is contained in:
Dmitriy Novozhilov
2021-09-02 11:12:05 +03:00
committed by teamcityserver
parent 6a8f36e313
commit 8117cd4c24
9 changed files with 30 additions and 29 deletions
@@ -7,9 +7,9 @@ fun fooShort(p: Short) = p
fun test() {
fooInt(1 % 1)
fooByte(<!TYPE_MISMATCH!>1 % 1<!>)
fooLong(<!TYPE_MISMATCH!>1 % 1<!>)
fooShort(<!TYPE_MISMATCH!>1 % 1<!>)
fooByte(<!INTEGER_OPERATOR_RESOLVE_WILL_CHANGE!>1 % 1<!>)
fooLong(<!INTEGER_OPERATOR_RESOLVE_WILL_CHANGE!>1 % 1<!>)
fooShort(<!INTEGER_OPERATOR_RESOLVE_WILL_CHANGE!>1 % 1<!>)
}
public operator fun Int.<!EXTENSION_SHADOWED_BY_MEMBER!>rem<!>(other: Int): Int = 0