diff --git a/src/generator/codegen.jl b/src/generator/codegen.jl index d3cd8f16..964a2d4a 100644 --- a/src/generator/codegen.jl +++ b/src/generator/codegen.jl @@ -927,7 +927,7 @@ end end # @objcwrapper - wrapperexpr = Expr(:macrocall, Symbol("@objcwrapper"), nothing, Expr(:(=), :immutable, :true)) + wrapperexpr = Expr(:macrocall, Symbol("@objcwrapper"), nothing) # add availability attribute before type declaration if !isnothing(platform_availability) && !isnothing(minsupported) && convert(VersionNumber, platform_availability.Introduced) > minsupported diff --git a/test/generators.jl b/test/generators.jl index 179fbf60..1b9dd605 100644 --- a/test/generators.jl +++ b/test/generators.jl @@ -251,11 +251,11 @@ end end print(output[]) - @test contains(output[],"@objcwrapper immutable = true TestProtocol <: NSObject") # Protocol - @test contains(output[],"@objcwrapper immutable = true TestProtocol2 <: TestProtocol") # Protocol subtyping Protocol - @test contains(output[],"@objcwrapper immutable = true TestInterface <: NSObject") # Interface + @test contains(output[],"@objcwrapper TestProtocol <: NSObject") # Protocol + @test contains(output[],"@objcwrapper TestProtocol2 <: TestProtocol") # Protocol subtyping Protocol + @test contains(output[],"@objcwrapper TestInterface <: NSObject") # Interface - @test contains(output[],"@objcwrapper immutable = true availability = macos(v\"100.11.0\") TestAvailability <: NSObject") # Wrapper Availability + @test contains(output[],"@objcwrapper availability = macos(v\"100.11.0\") TestAvailability <: NSObject") # Wrapper Availability @test contains(output[],"@autoproperty length::Int32 availability = macos(v\"101.11.0\")") # Property Availability # Interface Properties