Skip to content

Commit

Permalink
fix: omit dynamic from property attributes (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
t0rr3sp3dr0 authored Apr 16, 2024
1 parent a154bd1 commit 3c82901
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/objc/type_encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ func getPropertyAttributeTypes(attrs string) (string, bool) {
case propertyWeak:
attrsList = append(attrsList, "weak")
case propertyDynamic:
attrsList = append(attrsList, "@dynamic")
// omit the @dynamic directive because it must never appear inside
// @interface and @protocol blocks, only in @implementation blocks
case propertyStrong:
attrsList = append(attrsList, "collectable")
case propertyOptional:
Expand Down

0 comments on commit 3c82901

Please sign in to comment.