File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Samples/JavaKitSampleApp/Sources/JavaKitExample Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ extension HelloSwift: HelloSwiftNativeMethods {
5757 print ( " Hello from the subclass! " )
5858 helloSub. greetMe ( )
5959
60- assert ( helloSub. super . value == 2.71828 )
60+ assert ( helloSub. value == 2.71828 )
6161 } else {
6262 fatalError ( " Expected subclass here " )
6363 }
Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ extension JavaFieldMacro: AccessorMacro {
6565 ]
6666
6767 let nonmutatingModifier =
68- ( context. lexicalContext. first? . is ( ClassDeclSyntax . self) ?? false )
68+ ( context. lexicalContext. first? . is ( ClassDeclSyntax . self) ?? false ||
69+ context. lexicalContext. first? . is ( ExtensionDeclSyntax . self) ?? false )
6970 ? " "
7071 : " nonmutating "
7172
You can’t perform that action at this time.
0 commit comments