{ } public infix fun <T, U : T> T.shouldBe(any: U?): kotlin.Unit { } public infix fun <T> T.shouldHave(matcher: io.kotlintest.Matcher<T>): kotlin.Unit { } public infix fun <T> T.shouldNot(matcher: io.kotlintest.Matcher<T>): kotlin.Unit { } public infix fun <T> T.shouldNotBe(any: kotlin.Any?): kotlin.Unit { }
x, y -> x + y } val sum = { x: Int, y: Int -> x + y } fun formula(a: Double, f: (Double) -> Double): Double = f(a) val value = formula(3.0, { i: Double -> sqrt(i) })
x, y -> x + y } val sum = { x: Int, y: Int -> x + y } fun formula(a: Double, f: (Double) -> Double): Double = f(a) val value = formula(3.0, { i: Double -> sqrt(i) }) val value = formula(3.0, { sqrt(it) })
x, y -> x + y } val sum = { x: Int, y: Int -> x + y } fun formula(a: Double, f: (Double) -> Double): Double = f(a) val value = formula(3.0, { i: Double -> sqrt(i) }) val value = formula(3.0, { sqrt(it) }) val value = formula(3.0) { sqrt(it) }