-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep more ParenType parameter flags when canonicalizing function types
This will also preserve @escaping and @autoclosure, which were previously dropped. This could lead to mismatches between expected and actual canonical types for serialization cross-references. https://bugs.swift.org/browse/SR-8045, likely others
- Loading branch information
1 parent
59e3450
commit ca179e6
Showing
3 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public typealias Alias<T> = (T) -> () | ||
|
||
public class Super { | ||
public func foo(_ f: @escaping Alias<Bool>) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// RUN: %empty-directory(%t) | ||
// RUN: %target-build-swift -emit-module-path %t/main.swiftmodule -module-name main %s %S/Inputs/SR8045-other.swift | ||
|
||
public class Sub: Super { | ||
public override func foo(_ f: @escaping Alias<Bool>) {} | ||
} |