mirror of
https://github.com/apple/pkl.git
synced 2026-03-26 02:51:13 +01:00
Fix name resolution in typealias with constraint (#144)
The body of a typealias gets inlined into wherever the typealias is used. This fixes a bug where the references in the typealias body can resolve to the wrong value.
This commit is contained in:
@@ -1058,7 +1058,7 @@ external class Boolean extends Any {
|
||||
}
|
||||
|
||||
/// A Unicode character (code point).
|
||||
typealias Char = String(this.length == 1) // `this.` works around rdar://75074742
|
||||
typealias Char = String(length == 1)
|
||||
|
||||
/// A sequence of Unicode characters (code points).
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user