Open uhooi opened 2 years ago
If it were Self
, would there be any problems?
@sidepelican Mock causes a compile error.
❌ .../OutputMocks.swift:99:99: stored property cannot have covariant 'Self' type
static private var _shared: Self! { didSet { sharedSetCallCount += 1 } }
^
❌ .../OutputMocks.swift:99:99: mutable property cannot have covariant 'Self' type
public static var shared: Self {
^
Computed properties that return
Self
also returnSelf
in the mock.I would like the mock class return.
Reference
Version