blob: 36d3340a4b44db1747cb46282eec1798af11d9ce [file] [log] [blame]
// RUN: %target-typecheck-verify-swift -swift-version 3
// Swift 3 used default literal types even for normal protocol constraints,
// which led to nonsensical type inference behavior.
func f<T: ExpressibleByIntegerLiteral>(_: T = 0) { }
f()
struct X<T: ExpressibleByIntegerLiteral> {
func g() { }
}
X().g()