-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Labels
feature:jextractIssues related to jextract-swiftIssues related to jextract-swiftgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededmode:jni
Description
jextract JNI source generation should handle void calls better, since we're getting warnings:
/Users/ktoso/code/swift-java/Samples/SwiftJavaExtractJNISampleApp/.build/plugins/outputs/swiftjavaextractjnisampleapp/MySwiftLibrary/destination/JExtractSwiftPlugin/Sources/MySwiftLibraryModule+SwiftJava.swift:472:13: warning: constant 'swiftResult$' inferred to have type '()', which may be unexpected
470 | } // printTaskBody(printer:) @ JExtractSwiftLib/JNISwift2JavaGenerator+NativeTranslation.swift:976
471 | do {
472 | let swiftResult$ = await try MySwiftLibrary.asyncThrows()
| |- warning: constant 'swiftResult$' inferred to have type '()', which may be unexpected
| `- note: add an explicit type annotation to silence this warning
Metadata
Metadata
Assignees
Labels
feature:jextractIssues related to jextract-swiftIssues related to jextract-swiftgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededmode:jni