mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
12 lines
192 B
Swift
12 lines
192 B
Swift
// RUN: %swift %s -verify
|
|
|
|
func f0(_ : Int, _ : Float) { }
|
|
|
|
var i : Int
|
|
var d : Double
|
|
|
|
// Tuple element.
|
|
f0(i,
|
|
d // expected-error{{invalid conversion from type 'Double' to 'Float'}}
|
|
)
|