mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously, diagnostics for arguments of platform conditions (e.g. 'os(macOS)') used to point the condition name position instead of the argument position. Adjust the position to the start of the argument. rdar://124160048
6 lines
155 B
Swift
6 lines
155 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
// expected-error@+1:16{{unexpected platform condition argument: expected feature name}}
|
|
#if hasFeature(17)
|
|
#endif
|