You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
public class Event <T> {
public init () {}
}
public extension Event where T == Void {
func emit () {
}
func emit (on target: AnyObject) {
}
func emit (on targets: [AnyObject]) {
}
}
Error (Fatal): SwiftRepro-Event-Extension0.swift:7:5: error: ambiguous reference to member 'emit()'
this.emit();
^~~~
SwiftRepro.Event<()>:2:17: note: found this candidate
public func emit()
^
SwiftRepro.Event<()>:3:17: note: found this candidate
public func emit(on target: Swift.AnyObject)
^
SwiftRepro.Event<()>:4:17: note: found this candidate
public func emit(on targets: [Swift.AnyObject])
^
SwiftRepro-Event-Extension0.swift:11:5: error: ambiguous reference to member 'emit()'
this.emit(on: on);
^~~~
SwiftRepro.Event<()>:2:17: note: found this candidate
public func emit()
^
SwiftRepro.Event<()>:3:17: note: found this candidate
public func emit(on target: Swift.AnyObject)
^
SwiftRepro.Event<()>:4:17: note: found this candidate
public func emit(on targets: [Swift.AnyObject])
^
SwiftRepro-Event-Extension0.swift:15:5: error: ambiguous reference to member 'emit()'
this.emit(on: on.pointee);
^~~~
SwiftRepro.Event<()>:2:17: note: found this candidate
public func emit()
^
SwiftRepro.Event<()>:3:17: note: found this candidate
public func emit(on target: Swift.AnyObject)
^
SwiftRepro.Event<()>:4:17: note: found this candidate
public func emit(on targets: [Swift.AnyObject])
^
(Exception)
Error (Fatal): Failed to wrap module SwiftRepro. (CompilerException)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: