[embedded] Add Unicode.Scalar to embedded stdlib

This commit is contained in:
Kuba Mracek
2024-01-16 16:01:48 -08:00
parent c80fbae028
commit c12d067eac
4 changed files with 24 additions and 60 deletions

View File

@@ -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")