JET-126 Put 'where'-clause after the declaration

This commit is contained in:
Andrey Breslav
2011-07-08 22:44:56 +04:00
parent addfc6a421
commit c2435f0f24
13 changed files with 154 additions and 126 deletions
@@ -16,9 +16,9 @@ class List<T> {
}
fun <E, T, R> where
fun <E, T, R> Map<E, T>.map(f : fun (E) : R) : T<R> where
T : Iterable<E>,
class object T : Buildable<E, T> Map<E, T>.map(f : fun (E) : R) : T<R> = {
class object T : Buildable<E, T> = {
val builder = T.newBuilder()
for (e in this) {
builder += f(e)