blob: 6d7282990d6082da98977a550e2b6fe50fb2eb1b [file] [log] [blame]
// 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}}