mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
30 lines
417 B
Swift
30 lines
417 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
#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
|