mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-19 16:54:08 +10:00
Added the opaque keyword
This commit is contained in:
@@ -570,6 +570,8 @@ static bool execVarDecl(Interpreter* interpreter, bool lng) {
|
||||
parseCompoundToPureValues(interpreter, &val);
|
||||
}
|
||||
|
||||
//TODO: could restrict opaque data to only opaque variables
|
||||
|
||||
//BUGFIX: allow easy coercion on decl
|
||||
if (AS_TYPE(type).typeOf == LITERAL_FLOAT && IS_INTEGER(val)) {
|
||||
val = TO_FLOAT_LITERAL(AS_INTEGER(val));
|
||||
|
||||
Reference in New Issue
Block a user