Open swift-ci opened 3 years ago
Issue Description:
Given the following code:
import Swift extension Double { {{ public func DoubleIt () -> Double }}{
import Swift
{{ return self * 2}}
}
{{}}}
This generates the following swiftinterface file:
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)
// swift-module-flags: -target x86_64-apple-macosx10.9 -enable-objc-interop -enable-library-evolution -module-name ExtensionTests
extension Double {
{{ public func DoubleIt() -> Swift.Double}}
Note that the return type is fully qualified but the extension type is not.
The extension type should be fully qualified as well.
@swift-ci create
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 5ffcd2348c458d5c143ca6102c9cff00Issue Description:
Given the following code:
import Swift
extension Double {
{{ public func DoubleIt () -> Double }}{
{{ return self * 2}}
{{}}}
This generates the following swiftinterface file:
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)
// swift-module-flags: -target x86_64-apple-macosx10.9 -enable-objc-interop -enable-library-evolution -module-name ExtensionTests
import Swift
extension Double {
{{ public func DoubleIt() -> Swift.Double}}
{{}}}
Note that the return type is fully qualified but the extension type is not.
The extension type should be fully qualified as well.