blob: d54ef05d6159909c3dec6a78c69c8f5ba8b9fac9 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift
// RUN: %target-typecheck-verify-swift -swift-version 4
#if !compiler(>=4.1)
// There should be no error here.
foo bar
#else
let _: Int = 1
#endif
#if compiler(<4.1)
// There should be no error here.
foo bar
#else
let _: Int = 1
#endif
#if (compiler(>=4.1))
let _: Int = 1
#else
// There should be no error here.
foo bar
#endif
#if !compiler(<4.1)
let _: Int = 1
#else
// There should be no error here.
foo bar
#endif