Skip to content

Commit f96cbb8

Browse files
t-aestephentyrone
authored andcommitted
Make AdditiveArithmetic.zero @_transparent (swiftlang#25658)
1 parent e0e2d77 commit f96cbb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/core/Integers.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ public extension AdditiveArithmetic where Self : ExpressibleByIntegerLiteral {
133133
///
134134
/// Zero is the identity element for addition. For any value,
135135
/// `x + .zero == x` and `.zero + x == x`.
136+
@_transparent
136137
static var zero: Self {
137138
return 0
138139
}

0 commit comments

Comments
 (0)