Add test for SAM-converted lambdas passed to Obj-C
Based on https://youtrack.jetbrains.com/issue/KT-44799
This commit is contained in:
committed by
Vasily Levchenko
parent
ab36e919bc
commit
f7af8bc763
@@ -0,0 +1,15 @@
|
||||
import Kt
|
||||
|
||||
// Based on https://youtrack.jetbrains.com/issue/KT-44799.
|
||||
private func testSAMConversion() throws {
|
||||
try assertEquals(actual: FunInterfacesKt.getObject().run(), expected: 1)
|
||||
try assertEquals(actual: FunInterfacesKt.getLambda().run(), expected: 2)
|
||||
}
|
||||
|
||||
class FunInterfacesTests : SimpleTestProvider {
|
||||
override init() {
|
||||
super.init()
|
||||
|
||||
test("TestSAMConversion", testSAMConversion)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user