Sign in
fuchsia
/
third_party
/
swift
/
115f7a43e006a33e81039ca67932db42fcb16b64
/
.
/
test
/
TypeCoercion
/
constructor_return_type.swift
blob: 02a0c6b8bae9d53cf1a4c9f92ecca8e2757325e6 [
file
] [
log
] [
blame
]
// RUN: %target-typecheck-verify-swift
struct
S
{
init
(
a
:
Bool
)
{
return
}
init
(
b
:
Bool
)
{
return
1
// expected-error {{'nil' is the only return value permitted in an initializer}}
}
}