Skip to content

Comments

Restore unary + for Array#61090

Closed
subwaycookiecrunch wants to merge 1 commit intoJuliaLang:masterfrom
subwaycookiecrunch:fix-unary-plus-array
Closed

Restore unary + for Array#61090
subwaycookiecrunch wants to merge 1 commit intoJuliaLang:masterfrom
subwaycookiecrunch:fix-unary-plus-array

Conversation

@subwaycookiecrunch
Copy link

@subwaycookiecrunch subwaycookiecrunch commented Feb 19, 2026

Restores support for unary + on Arrays with non-Number element types, which was regressed by a recent change to + method signatures.

Added +(A::Array) = broadcast_preserving_zero_d(+, A) to handle the unary case for all Arrays, restoring consistent behavior.

Also included a regression test in test/arrayops.jl.

oscardssmith
oscardssmith previously approved these changes Feb 19, 2026
@xal-0 xal-0 dismissed oscardssmith’s stale review February 20, 2026 00:41

Flagging this as likely undisclosed AI use

@jishnub
Copy link
Member

jishnub commented Feb 20, 2026

Duplicate of #61052?

@jishnub jishnub closed this Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants