G
Size: a a a
G
T
M(
M(
M(
G
VB
G
Error: cannot prove that it's safe to initialize 'oneBranch' with the runtime value for the discriminator 'kind'
?VB
G
test = Test(kind: ...)
test.firstBranch = ...
VB
G
test = Test(kind: ...)
test.firstBranch = ...
G
G
VB
M(
G
...
будут не константы, а рантаймы, то будет ошибка cannot prove that it's safe to initialize with the runtime value for the discriminator
t = Test(kind: kind, anotherKind: anotherKind) # ошибка
t = Test(kind: kind)
t.anotherKind = anotherKind # другая ошибка, но может работать с ARC
M(
M(
M(