mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
10 lines
238 B
Swift
10 lines
238 B
Swift
open class Base {
|
|
fileprivate func privateMethod() {}
|
|
}
|
|
|
|
// Demonstrate the need for a vtable entry for privateMethod().
|
|
// This isn't strictly necessary.
|
|
private class Subclass : Base {
|
|
override fileprivate func privateMethod() {}
|
|
}
|