Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/larray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ A = @LVector Float64 (:a, :b, :c, :d)
A .= rand(4)
```

On the other hand, users can also initialize the vector and set its values at the
same time:
To initialize the vector and set its values at the
same time, use [`@LArray`](@ref) instead:

```julia
b = @LVector [1, 2, 3] (:a, :b, :c)
b = @LArray [1, 2, 3] (:a, :b, :c)
```
"""
macro LVector(type, syms)
Expand Down
3 changes: 3 additions & 0 deletions test/larrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ using LabelledArrays, Test, InteractiveUtils
@test vcat(x, y) == [1, 2, 3, 4, 5, 6]

@test_throws ErrorException x.z

# Ref #93, #154
@test_broken @LVector [1, 2, 3] (:a, :b, :c)
end

@testset "Alternate array backends" begin
Expand Down