-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Labels
feature:jextractIssues related to jextract-swiftIssues related to jextract-swift
Description
Reproduction
Found while testing #486. Reproducible with the following code in:
public class Foo {
public private(set) var bar: String {
get { fatalError("") }
set { fatalError("") }
}
}
in the Samples/SwiftJavaExtractFFMSampleApp/Sources/MySwiftLibrary/Foo.swift. This currently emits the following bridge and a compilation error:
error: cannot assign to property: 'bar' setter is inaccessible
16 | @_cdecl("swiftjava_MySwiftLibrary_Foo_bar$set")
17 | public func swiftjava_MySwiftLibrary_Foo_bar$set(_ newValue: UnsafePointer<Int8>, _ self: UnsafeRawPointer) {
18 | self.assumingMemoryBound(to: Foo.self).pointee.bar = String(cString: newValue)
| `- error: cannot assign to property: 'bar' setter is inaccessible
Metadata
Metadata
Assignees
Labels
feature:jextractIssues related to jextract-swiftIssues related to jextract-swift