Playing around with wrapping some of my value types in noncopyable types generated the following in a playground under Xcode 15.1b2:
struct A { }
let a = A()
@dynamicMemberLookup
struct Ref<S>: ~Copyable {
var value: S
subscript<T>(dynamicMember keyPath: KeyPath<S, T>) -> T {
value[keyPath: keyPath]
}
}
let refA = Ref(value: a)
This produces:
error: couldn't IRGen expression. Please enable the expression log by running "log enable lldb expr", then run the failing expression again, and file a bug report with the log output.
Not quite sure a) how to do that last step or b) if this is supposed to work at this point. Thoughts?