-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed false positive for public protocols with extensions * Renamed fixtures and updated changelog * Fixed false positive for params of foreign protocol in subclass * Removed unused params * Renamed fixtures and updated changelog * Updated changelog * Fixed false positive for open methods parameters * Updated changelog Co-authored-by: Ian Leitch <[email protected]>
- Loading branch information
Showing
4 changed files
with
42 additions
and
15 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
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
13 changes: 13 additions & 0 deletions
13
Tests/RetentionFixtures/testRetainsOpenClassParameters.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,13 @@ | ||
import Foundation | ||
|
||
open class FixtureClass112 { | ||
open func doSomething(with value: Int) { } | ||
} | ||
|
||
public class FixtureClass112Retainer { | ||
var instance: FixtureClass112? | ||
|
||
public func doSomething() { | ||
instance?.doSomething(with: .random(in: 0...10)) | ||
} | ||
} |