emojicode / emojicode

πŸ˜€πŸ˜œπŸ”‚ World’s only programming language that’s bursting with emojis

Home Page:https://emojicode.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build list of callables

rozaxe opened this issue Β· comments

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.
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).

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 πŸ˜…

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?

Okay I am going to investigate !