Skip to content

Commit

Permalink
work around JuliaLang#20249
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jan 26, 2017
1 parent 26a71e0 commit e78fd0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/nullable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,10 @@ sqr(x) = x^2
@test Nullable(2) .^ Nullable{Int}() |> isnull_oftype(Int)

# multi-arg broadcast
@test Nullable(1) .+ Nullable(1) .+ Nullable(1) .+ Nullable(1) .+ Nullable(1) .+
Nullable(1) === Nullable(6)
@test Nullable(1) .+ Nullable(1) .+ Nullable(1) .+ Nullable{Int}() .+
Nullable(1) .+ Nullable(1) |> isnull_oftype(Int)
@test (Nullable(1) .+ Nullable(1) .+ Nullable(1) .+ Nullable(1) .+ Nullable(1) .+
Nullable(1) === Nullable(6))
@test (Nullable(1) .+ Nullable(1) .+ Nullable(1) .+ Nullable{Int}() .+
Nullable(1) .+ Nullable(1) |> isnull_oftype(Int))

# these are not inferrable because there are too many arguments
us = map(Nullable, 1:20)
Expand Down

0 comments on commit e78fd0f

Please sign in to comment.