Files
swift-mirror/test/SIL/parse_swift_decls_in_sil_mode.sil
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

11 lines
346 B
Plaintext

// RUN: %target-typecheck-verify-swift
typealias Int = ()
deinit // expected-error {{deinitializers may only be declared within a class}}
subscript (x : Int, y : Int) -> Int { get }// expected-error{{'subscript' functions may only be declared within a type}}
init(i:Int) // expected-error {{initializers may only be declared within a type}}