Sign in
fuchsia
/
third_party
/
swift
/
refs/heads/upstream/tensorflow-stage
/
.
/
test
/
Constraints
/
add_with_nil.swift
blob: 0a5e9b1eabc22ca2108ba3a23491011123b13ffd [
file
] [
log
] [
blame
]
// RUN: %target-typecheck-verify-swift -swift-version 5
func test
(
_ x
:
Int
)
->
Int
{
return
x
+
nil
// expected-error@-1 {{'nil' is not compatible with expected argument type 'Int'}}
}