blob: c27973a1fe66029b26cfd5474ccd38ad99aee797 [file] [log] [blame]
// RUN: %target-parse-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}}