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 135135
136136@inline Base. widen (:: StaticInt{N} ) where {N} = widen (N)
137137
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))
140140function Base. UnitRange {T} (start:: StaticInt , stop:: StaticInt ) where {T<: Real }
141141 return UnitRange {T} (T (start), T (stop))
142142end
Original file line number Diff line number Diff line change 597597 @test convert (typeof (z), @inferred (f (2 // 7 , i))) === z
598598 end
599599 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
600607end
601608
602609@testset " insert/deleteat" begin
You can’t perform that action at this time.
0 commit comments