Files
swift-mirror/test/Serialization/Inputs/def_objc_conforming.swift
Doug Gregor 3246b728bd [SR-3917] Allow missing witnesses for optional and unavailable requirements.
This is a bit of a hack to dodge an assertion. In essence, it's a
harmless hack, but we'd like to make the handling of optional and
unavailable requirements more rigorous.
2017-03-02 23:03:10 -08:00

10 lines
155 B
Swift

import Foundation
@objc public protocol Proto {
@objc optional func badness()
}
public class Foo: Proto {
public var badness: Int = 0 // unrelated
}