Michael Strasser
typealias Matcher = (String) -> Boolean data class Thing(matcher: Matcher)
it("compares values of function types") { val testThing = Thing({ it.startsWith("test") }) testThing.matcher shouldBe { it.startsWith("test") } }
expected:<(kotlin.String) -> kotlin.Boolean> but was:<(kotlin.String) -> kotlin.Boolean>
sam
A modern programming language that makes developers happier.