mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
21 lines
317 B
Swift
21 lines
317 B
Swift
// RUN: %target-build-swift %s -I %S/Inputs
|
|
|
|
import Issue_78447_C
|
|
|
|
func foo<T> (ptr: UnsafePointer<T>?) -> String? {
|
|
return nil
|
|
}
|
|
|
|
class A {
|
|
internal let ptr: xmlNsPtr
|
|
internal init(ptr: xmlNsPtr) {
|
|
self.ptr = ptr
|
|
}
|
|
}
|
|
|
|
class B : A {
|
|
func bar() -> String? {
|
|
return foo(ptr: ptr.pointee.prefix)
|
|
}
|
|
}
|