Sign in
fuchsia
/
third_party
/
swift
/
0130407e2119dd1e302aaddbb7c1399647ebfc6f
/
.
/
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}}
}
}