Skip to content

Commit 7ed5bd4

Browse files
feat: implement Base.oneunit
1 parent 403629b commit 7ed5bd4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/types.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,6 +1136,7 @@ Base.one( s::BSImpl.Type) = one( symtype(s))
11361136
Return a `Const` symbolic wrapping `1`.
11371137
"""
11381138
Base.one(::Type{BSImpl.Type{T}}) where {T} = one_of_vartype(T)
1139+
Base.oneunit(::Type{BSImpl.Type{T}}) where {T} = one_of_vartype(T)
11391140
"""
11401141
$TYPEDSIGNATURES
11411142

0 commit comments

Comments
 (0)