Skip to content

Commit 97851f2

Browse files
authored
Merge pull request #14 from idarlington/patch-1
Options type error (Issue #13)
2 parents 3144a4d + 8da6442 commit 97851f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/scala/stdlib/Options.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ object Options extends FlatSpec with Matchers with exercise.Section {
5656

5757
/** Option can also be used with pattern matching:
5858
*/
59-
def matchOptions(res0: Float, res1: Float) {
59+
def matchOptions(res0: Double, res1: Double) {
6060
val someValue: Option[Double] = Some(20.0)
6161
val value = someValue match {
6262
case Some(v) v

src/test/scala/exercises/stdlib/OptionsSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class OptionsSpec extends Spec with Checkers {
4242
check(
4343
Test.testSuccess(
4444
Options.matchOptions _,
45-
20F :: 0F :: HNil
45+
20D :: 0D :: HNil
4646
)
4747
)
4848
}

0 commit comments

Comments
 (0)