mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
A parse-only option is needed for parse performance tracking and the current option also includes semantic analysis.
11 lines
283 B
Swift
11 lines
283 B
Swift
// RUN: %target-typecheck-verify-swift -debugger-support
|
|
|
|
import Nonexistent_Module // expected-error {{no such module}}
|
|
|
|
var ($x0, $x1) = (4, 3)
|
|
var z = $x0 + $x1
|
|
|
|
z // no error.
|
|
|
|
var x: Double = z // expected-error {{cannot convert value of type 'Int' to specified type 'Double'}}
|