MasseGuillaume / ScalaKata2

Interactive Playground
https://scastie.scala-lang.org/
98 stars 13 forks source link

macro fail to compile #7

Closed MasseGuillaume closed 8 years ago

MasseGuillaume commented 9 years ago
val withDefault: Option[Int] => Int = {
  case Some(x) => x
  case None => 0
}