 /// Default implementation for record methods as protocol extension
 public func recordProtocolExtensionCode(_ globalFunctions: [GIR.Function], _ e: GIR.Record, indentation: String = "    ") -> String {
     let mcode = methodCode(indentation, record: e, publicDesignation: "")
-    let vcode = computedPropertyCode(indentation, record: e)
+    let vcode = computedPropertyCode(indentation, record: e, publicDesignation: "")
     let allMethods = e.methods + (e.functions + globalFunctions).filter {
         let fun = $0
         return fun.args.lazy.filter({ (arg: GIR.Argument) -> Bool in



/// Swift code for computed properties
public func computedPropertyCode(_ indentation: String, record: GIR.Record) -> (GetterSetterPair) -> String {
    let doubleIndent = indentation + indentation
    let gcall = callCode(doubleIndent, record)
    let scall = callSetter(doubleIndent, record)

        } else {
            property = gs
        }
        let varDecl = swiftCode(property, indentation + "\(publicDesignation)var \(name): \(type) {\n", indentation: indentation)
        let deprecated = getter.deprecated != nil ? "@available(*, deprecated) " : ""
        let getterCode = swiftCode(getter, doubleIndent + "\(deprecated)get {\n" +
            doubleIndent + indentation + gcall(getter) +
