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 {
57
57
print ( " Hello from the subclass! " )
58
58
helloSub. greetMe ( )
59
59
60
- assert ( helloSub. super . value == 2.71828 )
60
+ assert ( helloSub. value == 2.71828 )
61
61
} else {
62
62
fatalError ( " Expected subclass here " )
63
63
}
Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ extension JavaFieldMacro: AccessorMacro {
65
65
]
66
66
67
67
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 )
69
70
? " "
70
71
: " nonmutating "
71
72
You can’t perform that action at this time.
0 commit comments