5d5628f56e
Previously they were skipped, and this was an incorrect optimization: even if super class implements the interface too, this doesn't mean that virtual adapters provided by that interface are inherited by non-exported subclass that needs them; for example, this doesn't happen when the super class is exported (i.e. Obj-C class is not created at runtime). Remove incorrect optimization instead of making it more sophisticated, because it is useless anyway. ^KT-46431 Fixed
21 lines
463 B
Swift
21 lines
463 B
Swift
/*
|
|
* Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
|
* that can be found in the LICENSE file.
|
|
*/
|
|
|
|
import Kt
|
|
|
|
// Based on https://youtrack.jetbrains.com/issue/KT-46431.
|
|
|
|
private func test1() throws {
|
|
try assertEquals(actual: Kt46431Kt.createAbstractHost().test, expected: "1234")
|
|
}
|
|
|
|
class Kt46431Tests : SimpleTestProvider {
|
|
override init() {
|
|
super.init()
|
|
|
|
test("Test1", test1)
|
|
}
|
|
}
|