summaryrefslogtreecommitdiff
path: root/test/files/pos/spec-Function1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/spec-Function1.scala')
-rw-r--r--test/files/pos/spec-Function1.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/pos/spec-Function1.scala b/test/files/pos/spec-Function1.scala
index 62789ed12a..24ee6c0de8 100644
--- a/test/files/pos/spec-Function1.scala
+++ b/test/files/pos/spec-Function1.scala
@@ -36,11 +36,11 @@ package scala
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)) }