Files
swift-mirror/test/Parse/debugger.swift
David Farler b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00

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