When renaming A.value,
it also causes the value inside the conditional compilation in checkRename to be renamed.
How to resolve or avoid this situation?
class A {
let value = "1"
}
class B {
var value = 0
}
func checkRename() {
var b = B()
#if os(iOS)
b.value = 456
#elseif os(macOS)
b.value = 789
#endif
}
Xcode Version 15.4 (15F31d).