mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
A parse-only option is needed for parse performance tracking and the current option also includes semantic analysis.
11 lines
346 B
Plaintext
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}}
|
|
|