Minor: remove inner type alias from gradle test

This commit is contained in:
Alexey Tsvetkov
2016-11-18 23:02:04 +03:00
parent f70ba8b18d
commit c15e878808
2 changed files with 3 additions and 3 deletions
@@ -1,8 +1,8 @@
package foo
class Curry<T, R>(private val f: FN2, private val arg1: T) {
typealias FN2 = (T, T) -> R
typealias FN2<T, R> = (T, T) -> R
class Curry<T, R>(private val f: FN2<T, R>, private val arg1: T) {
operator fun invoke(arg2: T): R =
f(arg1, arg2)
}
@@ -7,7 +7,7 @@ class UseCurry {
if (plus1(1) != 2) throw AssertionError()
}
private object Plus : Curry<Int, Int>.FN2 {
private object Plus : FN2<Int, Int> {
override fun invoke(p0: Int, p1: Int): Int =
p0 + p1
}