mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-17 15:54:07 +10:00
The value is displaying correctly, but not the type
This commit is contained in:
@@ -44,7 +44,10 @@ Scope* popScope(Scope* scope) {
|
||||
}
|
||||
|
||||
//returns false if error
|
||||
bool declareScopeVariable(Scope* scope, Literal key) {
|
||||
bool declareScopeVariable(Scope* scope, Literal key, Literal type) {
|
||||
//store the type, for later checking on assignment
|
||||
//TODO
|
||||
|
||||
//don't redefine a variable within this scope
|
||||
if (existsLiteralDictionary(&scope->variables, key)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user