You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using named tuples with type variables sometimes leads to errors when the NamedTupleTools package is loaded. In particular, the pirated fieldtypes function causes errors, e.g., when printing the documentation (example code uses Julia 1.8 and NamedTupleTools 0.14.1):
w/o NamedTupleTools (expected behavior)
julia>const Foo{T} =@NamedTuple{a::T}
NamedTuple{(:a,), Tuple{T}} where T
help?> Foo
search: Foo floor pointer_from_objref OverflowError RoundFromZero unsafe_copyto! functionloc StackOverflowError @functionloc OutOfMemoryError UndefKeywordError unsafe_pointer_to_objref
No documentation found.
Summary
≡≡≡≡≡≡≡≡≡struct NamedTuple{(:a,), Tuple{T}}
Fields
≡≡≡≡≡≡≡≡
a ::T
Using named tuples with type variables sometimes leads to errors when the NamedTupleTools package is loaded. In particular, the pirated
fieldtypes
function causes errors, e.g., when printing the documentation (example code uses Julia 1.8 and NamedTupleTools 0.14.1):w/o NamedTupleTools (expected behavior)
w/ NamedTupleTools
Notably, this breaks otherwise valid Julia code by just
using
the NamedTupleTools package.The text was updated successfully, but these errors were encountered: