diff options
Diffstat (limited to 'test/files/pos/spec-Function1.scala')
-rw-r--r-- | test/files/pos/spec-Function1.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/pos/spec-Function1.scala b/test/files/pos/spec-Function1.scala index 2a3074fd14..5a115501d8 100644 --- a/test/files/pos/spec-Function1.scala +++ b/test/files/pos/spec-Function1.scala @@ -35,11 +35,11 @@ package scalabip trait Function1[@specialized -T1, @specialized +R] extends AnyRef { self => def apply(v1:T1): R override def toString() = "<function>" - + /** (f compose g)(x) == f(g(x)) */ def compose[A](g: A => T1): A => R = { x => apply(g(x)) } - + /** (f andThen g)(x) == g(f(x)) */ def andThen[A](g: R => A): T1 => A = { x => g(apply(x)) } |