mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
A @usableFromInline method is public at the ABI level, so we do not need to introduce a new vtable entry. Fixes <rdar://problem/74489981>.
10 lines
238 B
Swift
10 lines
238 B
Swift
open class Base {
|
|
internal func internalMethod() {}
|
|
@usableFromInline internal func usableFromInlineMethod() {}
|
|
}
|
|
|
|
open class Middle : Base {
|
|
open override func internalMethod() {}
|
|
open override func usableFromInlineMethod() {}
|
|
}
|