Skip to content

Commit a2e1dff

Browse files
authored
Missing Employee definition
1 parent 88a66c6 commit a2e1dff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/scala/fpinscalalib/ErrorHandlingSection.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ object ErrorHandlingSection extends FlatSpec with Matchers with org.scalaexercis
5151
//
5252
// _.getOrElse(Employee("John", "Doe", None))
5353

54+
case class Employee(name: String, department: String, manager: Option[String])
55+
5456
def getDepartment : (Option[Employee]) => Option[String] = res0
5557

5658
getDepartment(lookupByName("Joe")) shouldBe Some("Finances")

0 commit comments

Comments
 (0)