mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[embedded] Add Unicode.Scalar to embedded stdlib
This commit is contained in:
@@ -24,6 +24,11 @@ public func staticstring() -> StaticString {
|
||||
return "hello"
|
||||
}
|
||||
|
||||
public func unicodescalars() {
|
||||
let a = UInt8(ascii: "-")
|
||||
let b = Unicode.Scalar("-").value
|
||||
}
|
||||
|
||||
public func checks(n: Int) {
|
||||
precondition(n > 0)
|
||||
precondition(n > 0, "message")
|
||||
|
||||
Reference in New Issue
Block a user