Files
swift-mirror/test/Constraints/add_with_nil.swift
2020-10-14 16:05:54 -07:00

7 lines
190 B
Swift

// 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'}}
}