-
-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Description
I am the maintainer of SimJulia and recently the @compat macro for getting a Nullable type in Julia v0.3 and Julia v0.4 throws a BoundsError.
I isolated the problem with following small example:
`using Compat
type Test
a :: Float64
end
type TestCompat
t :: @compat Nullable{Test}
function TestCompat()
tc = new()
tc.t = @compat Nullable{Test}()
return tc
end
end
tc = TestCompat()
@compat get(tc.t)`
In Julia v0.4 without the @compat macro everything works fine (a NullException is thrown) but with the macro I get the following error message:
ERROR: LoadError: BoundsError: attempt to access 2-element Array{Any,1}:
:get
:(tc.t)
at index [3]
Metadata
Metadata
Assignees
Labels
No labels