jhaimecando27 / CGrassPLUS

0 stars 0 forks source link

SyA(function)): accepts mismatched datatypes in parameters #4

Open jhaimecando27 opened 5 months ago

jhaimecando27 commented 5 months ago

Describe the bug The parameter in a function accepts mismatched datatypes which is wrong

Code

seed
floral tint #test = 3;
garden()(
    mint(#test);
);
tint #fnc(tint #var1 = 3.4)(
    regrow #var1;
);
viola #fnc2()(
    mint(#var1);
);
plant

Expected behavior Semantic Error

Output Pane's Result

LexicalAnalyser: No Errors Found.
SyntaxAnalyser: No Errors Found.

Screenshots image

Additional context Add any other context about the problem here.