Minor: fix infix extension after parameter renamed

This commit is contained in:
Ilya Gorbunov
2015-11-20 14:01:54 +03:00
parent b61bef324d
commit f8f257fa44
@@ -426,7 +426,7 @@ class GenericFunction(val signature: String, val keyword: String = "fun") {
}
infix fun MutableList<GenericFunction>.add(item: GenericFunction) = add(item)
infix fun MutableList<GenericFunction>.addAll(items: Iterable<GenericFunction>) = this.addAll(iterable = items)
infix fun MutableList<GenericFunction>.addAll(items: Iterable<GenericFunction>) = this.addAll(elements = items)
fun f(signature: String, init: GenericFunction.() -> Unit) = GenericFunction(signature).apply(init)