// RUN: %target-typecheck-verify-swift struct G { init() {} init(x:G) { } func foo(_ x: G) { } func bar(_ x: U) { } static func static_foo(_ x: G) { } static func static_bar(_ x: U) { } } typealias GInt = G typealias GChar = G GInt(x: GChar()) // expected-warning{{unused}} GInt().foo(GChar()) GInt().bar(0) GInt.static_foo(GChar()) GInt.static_bar(0)