Commit 0599959
authored
Base.convert(::Type{Operator}, ::Operator) (#107)
* Base.convert(::Type{Operator}, ::Operator)
* do not convert if the type is already the same
This is expected by the convert api, e.g.
```
julia> a = [1]
1-element Vector{Int64}:
1
julia> b = convert(Vector{Int},a)
1-element Vector{Int64}:
1
julia> a[1] = 2; b
1-element Vector{Int64}:
2
```1 parent f98ec89 commit 0599959
3 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
35 | 42 | | |
36 | 43 | | |
37 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
143 | 148 | | |
0 commit comments