mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
but doesn't build anything. I have no idea why this test case needed to change. Swift SVN r27897
28 lines
821 B
Swift
28 lines
821 B
Swift
// RUN: %target-parse-verify-swift
|
||
|
||
class 你好 {
|
||
class שלום {
|
||
class வணக்கம் {
|
||
class Γειά {
|
||
class func привет() {
|
||
println("hello")
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
你好.שלום.வணக்கம்.Γειά.привет()
|
||
|
||
// Identifiers cannot start with combining chars.
|
||
.́duh() // expected-error 2{{an identifier cannot begin with this character}} // expected-error{{expected identifier after '.' expression}}
|
||
|
||
// Combining characters can be used within identifiers.
|
||
func s̈pin̈al_tap̈() {}
|
||
|
||
// Private-use characters aren't valid in Swift source.
|
||
() // expected-error{{invalid character in source file}}
|
||
|
||
// Placeholders are recognized as identifiers but with error.
|
||
func <#some name#>() {} // expected-error 2 {{editor placeholder in source file}}
|