Replace deprecated annotations with modifiers in testData

This commit is contained in:
Denis Zharkov
2015-09-17 13:04:46 +03:00
parent 4850fd10f0
commit 9dada595b6
18 changed files with 39 additions and 35 deletions
@@ -11,21 +11,21 @@ internal inline fun repeatAction(times: Int, action: () -> Unit) {
}
internal fun add(state: State, a: Int, b: Int): Int {
@inline fun inc(a: Int): Int {
inline fun inc(a: Int): Int {
return a + 1
}
@inline fun inc1(a: Int): Int {
inline fun inc1(a: Int): Int {
return inc(a)
}
repeatAction(a) {
@inline fun inc2(a: Int): Int {
inline fun inc2(a: Int): Int {
return inc1(a)
}
repeatAction(b) {
@inline fun State.inc() {
inline fun State.inc() {
count = inc2(count)
}