mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
10 lines
656 B
Swift
10 lines
656 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
var stream = ""
|
|
|
|
print(3, &stream) // expected-error{{'&' used with non-inout argument of type 'Any'}}
|
|
debugPrint(3, &stream) // expected-error{{'&' used with non-inout argument of type 'Any'}}
|
|
print(3, &stream, appendNewline: false) // expected-error {{incorrect argument label in call (have '_:_:appendNewline:', expected '_:_:separator:')}}
|
|
debugPrint(3, &stream, appendNewline: false) // expected-error {{incorrect argument label in call (have '_:_:appendNewline:', expected '_:_:separator:')}}
|
|
print(4, quack: 5) // expected-error {{incorrect argument label in call (have '_:quack:', expected '_:separator:')}}
|