File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 135
135
136
136
@inline Base. widen (:: StaticInt{N} ) where {N} = widen (N)
137
137
138
- Base. UnitRange {T} (start:: StaticInt , stop) where {T<: Real } = UnitRange {T} (T (start), stop)
139
- Base. UnitRange {T} (start, stop:: StaticInt ) where {T<: Real } = UnitRange {T} (start, T (stop))
138
+ Base. UnitRange {T} (start:: StaticInt , stop) where {T<: Real } = UnitRange {T} (T (start), T ( stop) )
139
+ Base. UnitRange {T} (start, stop:: StaticInt ) where {T<: Real } = UnitRange {T} (T ( start) , T (stop))
140
140
function Base. UnitRange {T} (start:: StaticInt , stop:: StaticInt ) where {T<: Real }
141
141
return UnitRange {T} (T (start), T (stop))
142
142
end
Original file line number Diff line number Diff line change 597
597
@test convert (typeof (z), @inferred (f (2 // 7 , i))) === z
598
598
end
599
599
end
600
+
601
+ @test UnitRange {Int16} (StaticInt (- 9 ), 17 ) === Int16 (- 9 ): Int16 (17 )
602
+ @test UnitRange {Int16} (- 7 , StaticInt (19 )) === Int16 (- 7 ): Int16 (19 )
603
+ @test UnitRange (- 11 , StaticInt (15 )) === - 11 : 15
604
+ @test UnitRange (StaticInt (- 11 ), 15 ) === - 11 : 15
605
+ @test UnitRange (StaticInt (- 11 ), StaticInt (15 )) === - 11 : 15
606
+ @test float (StaticInt (8 )) === 8.0
600
607
end
601
608
602
609
@testset " insert/deleteat" begin
You can’t perform that action at this time.
0 commit comments