Cannot build list of callables
rozaxe opened this issue Β· comments
Axel Rozo BrΓ©zillac commented
I tried making a list of callables, I am able to declare it but soon as I assign it, a compiler error occurs
π Declaration is fine
ππ calls π¨ππππ
π Assignation is not
ππ¨πππππΈβοΈ β‘οΈ πcalls
Assertion failed: (type() == TypeType::Class || type() == TypeType::Protocol || type() == TypeType::ValueType || type() == TypeType::Enum || type() == TypeType::Extension), function typeDefinition, file ../Compiler/Types/Type.cpp, line 93.
thbwd commented
Thanks for reporting. Iβve fixed this on the branch emojicode-0.6 so this will be part of 0.6.3 (which I hope to release soon).
Axel Rozo BrΓ©zillac commented
Well, the assignation now works but appending does not π
π π
ππ calls π¨ππππ
ππ¨πππππΈβοΈ β‘οΈ πcalls
π» calls π
π π€Helloπ€βοΈ
πβοΈ
π call calls π
βοΈcallβοΈ
π
π
Assertion failed: (type.type() == TypeType::ValueType || type.type() == TypeType::Enum), function boxInfoFor, file ../Compiler/Generation/CodeGenerator.cpp, line 69.
PS : I tried digging into the code, but I still cannot figure anything π
thbwd commented
@rozaxe Iβve fixed this on emojicode-0.6. Can you please continue your experiments with the latest version, so we can make sure no more errors pop up with callables?
Axel Rozo BrΓ©zillac commented
Okay I am going to investigate !