Describe the bug 🐞
Not sure if this is expected but LArray with identical repeated field names can be constructed using code in MWE.
Expected behavior
I would have expected to get an error if LArray has the same field names as if you use the constructor:
julia> LVector(test = 1, test = 2)
ERROR: syntax: keyword argument "test" repeated in call to "LVector" around REPL[7]:1
Stacktrace:
[1] top-level scope
@ REPL[7]:1
Minimal Reproducible Example 👇
using LabelledArrays
test_LArray1 = LVector(test = 1)
test_LArray2 = LVector(test = 2)
combined_LArray = [test_LArray1; test_LArray2]
@show combined_LArray
Error & Stacktrace ⚠️
n/a
Environment (please complete the following information):
- Output of
using Pkg; Pkg.status()
- Output of
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
julia> versioninfo()
Julia Version 1.11.1
Commit 8f5b7ca12ad (2024-10-16 10:53 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: macOS (x86_64-apple-darwin22.4.0)
CPU: 4 × Intel(R) Core(TM) i5-7600 CPU @ 3.50GHz
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 4 default, 0 interactive, 2 GC (on 4 virtual cores)
Environment:
JULIA_EDITOR = code
JULIA_NUM_THREADS = 4
Additional context
Add any other context about the problem here.
Describe the bug 🐞
Not sure if this is expected but LArray with identical repeated field names can be constructed using code in MWE.
Expected behavior
I would have expected to get an error if LArray has the same field names as if you use the constructor:
Minimal Reproducible Example 👇
Error & Stacktrace⚠️
n/a
Environment (please complete the following information):
using Pkg; Pkg.status()using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)versioninfo()Additional context
Add any other context about the problem here.