Update test data as operator 'mod' became deprecated

Revert this commit after changing 'mod' to 'rem' in stdlib
This commit is contained in:
Mikhail Zarechenskiy
2016-12-06 13:31:18 +03:00
parent 5f71f1bcad
commit 040f4e90ce
7 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
//KT-571 Type inference failed
fun <T, R> let(t : T, body : (T) -> R) = body(t)
private fun double(d : Int) : Int = let(d * 2) {it / 10 + it * 2 % 10}
private fun double(d : Int) : Int = let(d * 2) {it / 10 + it * 2 <!DEPRECATED_BINARY_MOD_AS_REM!>%<!> 10}
+1 -1
View File
@@ -24,5 +24,5 @@ fun main(args : Array<String>) {
c <!ASSIGNMENT_OPERATOR_SHOULD_RETURN_UNIT!>*=<!> B()
c <!ASSIGNMENT_OPERATOR_SHOULD_RETURN_UNIT!>/=<!> B()
c <!ASSIGNMENT_OPERATOR_SHOULD_RETURN_UNIT!>-=<!> B()
c <!ASSIGNMENT_OPERATOR_SHOULD_RETURN_UNIT!>%=<!> B()
c <!DEPRECATED_BINARY_MOD_AS_REM, ASSIGNMENT_OPERATOR_SHOULD_RETURN_UNIT!>%=<!> B()
}