Open jakobnissen opened 2 years ago
It's a bit different - BitVector{1}
is actually this:
julia> BitArray{1}{1}
ERROR: TypeError: in Type{...} expression, expected UnionAll, got Type{BitVector}
Stacktrace:
[1] top-level scope
@ REPL[2]:1
It's just not exposed that BitVector
is actually an BitArray{1}
here..
The following error message is quite confusing:
The problem with the code is that
BitVector
does not take any type parameters. In contrast, if you make the same error withBitArray
, which does take type parameters, you get a much nicer error:I think it would be nicer if:
BitVector
takes no parameters, got1
"BitArray
"