#capture union arm check

1 messages · Page 1 of 1 (latest)

surreal gale
#

I thought this used to work

if (@typeInfo(T) == .Array) |Arr| {
  _ = Arr;
  // same as doing @typeInfo(T).Array
}
delicate oasis
#

Never been a thing 🙂

sick tree
#

Yep, I don't recall this ever working either

#

Unless you mean unwrapping an optional perhaps?

surreal gale
#

no i know optionals are different