-
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround incorrect location of generic protocol extensions. Closes #…
- Loading branch information
Showing
4 changed files
with
50 additions
and
1 deletion.
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
25 changes: 25 additions & 0 deletions
25
Tests/Fixtures/RetentionFixtures/testRetainsGenericProtocolExtensionMembers.swift
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,25 @@ | ||
public protocol FixtureProtocol38<Value> { | ||
associatedtype Value | ||
} | ||
|
||
public extension FixtureProtocol38<Int> { | ||
func someFunc() {} | ||
} | ||
|
||
public protocol FixtureProtocol39<Value, Value2> { | ||
associatedtype Value | ||
associatedtype Value2 | ||
} | ||
|
||
public extension FixtureProtocol39<Int, Int> { | ||
func someFunc() {} | ||
} | ||
|
||
public protocol FixtureProtocol40<Value, Value2> { | ||
associatedtype Value | ||
associatedtype Value2 | ||
} | ||
|
||
public extension FixtureProtocol40 where Value == Int, Value2 == Int { | ||
func someFunc() {} | ||
} |
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