Skip to content

Commit

Permalink
Fix translation for ObjCProtocol 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipDolnik committed Nov 15, 2023
1 parent 419df1a commit d480684
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sealed class SpecialReferenceOirType(val name: String) : NonNullReferenceOirType
buildString {
append(name)
append(" *")
appendAttrsAndName(attrsAndName)
appendAttrsAndName(attrsAndName.plusNonnullAttributeIfNeeded(needsNonnullAttribute))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,10 @@ sealed class SpecialSirType<SELF : SirType>(

object Any : SpecialSirType<Any>(AnyTypeName.INSTANCE)

object Protocol : SpecialSirType<Protocol>(ProtocolTypeName.INSTANCE)
object Protocol : SpecialSirType<Protocol>(ProtocolTypeName.INSTANCE) {

override val isReference: Boolean = true

override fun asReferenceType(): Protocol = this
}
}

0 comments on commit d480684

Please sign in to comment.