Fix String index is out of bounds crash
This commit is contained in:
parent
e29f10eac6
commit
75a209c3ba
|
@ -187,7 +187,7 @@ public struct Tokenizer {
|
|||
|
||||
let effects: InstanceVariable.Effects
|
||||
if let bodyRange = bodyRange {
|
||||
effects = parseEffects(source: source[bodyRange])
|
||||
effects = parseEffects(source: source.utf8[bodyRange])
|
||||
} else {
|
||||
effects = .init()
|
||||
}
|
||||
|
|
|
@ -27,6 +27,11 @@ class TestedClass {
|
|||
return "a"
|
||||
}
|
||||
|
||||
var readOnlyPropertyWithJapaneseComment: String {
|
||||
// 日本語コメント
|
||||
return "a"
|
||||
}
|
||||
|
||||
@available(iOS 42.0, *)
|
||||
var unavailableProperty: UnavailableProtocol? {
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue