You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
jextract: isolated actor property setters generate Swift thunks that cannot compile #977
for an isolated actor property (public var isolatedValue: Int64 on public actor Record).
The generated Swift thunk for that setter cannot compile. The setter body is emitted as a plain cross-isolation assignment in JNISwift2JavaGenerator+SwiftThunkPrinting.swift (.setter case, ~line 741):
result="\(callee).\(decl.name) = \(newValueArgument)"
// i.e. selfPointer$.pointee.isolatedValue = newValue
This is illegal, and async setters are also not supported.
Suggested fix
Don't emit setters for isolated actor properties at all (skip with a diagnostic).
Activity