mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
10 lines
409 B
Swift
10 lines
409 B
Swift
// RUN: %target-typecheck-verify-swift
|
||
|
||
let nonBreakingSpace1 = 3 // expected-warning {{non-breaking space (U+00A0) used instead of regular space}} {{22-24= }}
|
||
|
||
let nonBreakingSpace2 = 3 // expected-warning {{non-breaking space (U+00A0) used instead of regular space}} {{24-26= }}
|
||
|
||
func foo() {
|
||
_ = 42 // expected-warning {{non-breaking space (U+00A0) used instead of regular space}} {{1-9= }}
|
||
}
|