import $ivy.`com.wix::accord-core:0.7.1`
import com.wix.accord._
import com.wix.accord.dsl._
case class Thing(people: List[String])
val thing2Validator = validator[Thing] { t =>
t.people.filter { case p if p != "" => true } is notEmpty
}
The macro fails during compile time:
<Accord>:1: '}' expected but eof found.
t.people.filter { case p if p != "" => true
^
Compilation Failed
Reproduced easily via Ammonite REPL:
The macro fails during compile time: