Commit 330869f
committed
Define unit(::Any)m unit(::Funciton) and add a type restriction to unit(::Type{Union{Missing,T}})
This is to resolve errors with uncluding units into FiniteDifferences.jl.
See JuliaDiff/FiniteDifferences.jl#244 for details.
Tests for Units.jl need to be updated, if this is to be accepted.
The totalness of unit introduced via unit(::Ay) might be a bit controversial,
but I don't think that should be a problem. In general, things don't have units.
Only Numbers do.
Closes JuliaPhysics#806.1 parent c1a9b4e commit 330869f
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | | - | |
| 145 | + | |
| 146 | + | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| |||
0 commit comments