Files
swift-mirror/test/decl/inherit/objc_initializer.swift
David Farler b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00

15 lines
282 B
Swift

// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -verify
// REQUIRES: objc_interop
import Foundation
class Foo : NSObject {
@objc(initWithInt:)
init(value: Int) { }
@objc(initWithString:)
init(value: String) { }
}
class Bar : Foo { // okay:
}