hastebrot
11/12/2015, 5:06 PMfun main(args: Array<String>) {
expecty {
12.3 == 23.4
"foo" == "bar"
}
}
class Expecty() {
fun Any?.equals(other: Any?): Boolean {
println("expecty: $this")
return true
}
}
fun expecty(context: Expecty.() -> Unit) {
Expecty().context()
}