mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
8 lines
357 B
Swift
8 lines
357 B
Swift
// RUN: %target-swift-frontend -parse -enable-source-import -primary-file %s %S/Inputs/multi-file-with-main/main.swift -module-name=MultiFile -sdk "" -verify
|
|
|
|
func testOperator() {
|
|
// FIXME: Lousy error message.
|
|
let x: Int = 1 +++ "abc" // expected-error {{binary operator '+++' cannot be applied to operands of type 'Int' and 'String'}}
|
|
println(x)
|
|
}
|