From cdd24b6b59af6fc5a8eaa7a5d1e55180c863cfe6 Mon Sep 17 00:00:00 2001 From: Steven Heidel Date: Mon, 20 Apr 2015 13:30:37 -0700 Subject: [PATCH] Rename default to orElse --- src/main/scala/io/getclump/Clump.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/io/getclump/Clump.scala b/src/main/scala/io/getclump/Clump.scala index df90d0d..cd790db 100644 --- a/src/main/scala/io/getclump/Clump.scala +++ b/src/main/scala/io/getclump/Clump.scala @@ -48,7 +48,7 @@ sealed trait Clump[+T] { /** * If this clump does not return a value then use the default instead */ - def default[B >: T](default: => B): Clump[B] = new ClumpOrElse(this, Clump.value(default)) + def orElse[B >: T: ClassTag](default: => B): Clump[B] = new ClumpOrElse(this, Clump.value(default)) def orElse[B >: T](default: => Clump[B]): Clump[B] = new ClumpOrElse(this, default)