#type checking does nothing???

1 messages · Page 1 of 1 (latest)

scenic kettle
#

so from what i've read in the documentation, type checking throws an error if a variable isn't the type assigned to it. if that's the case, then why does this not cause any errors?

local var: string = 1
print(var)
-- this prints 1 with no errors
idle beacon
#

write --!strict on the first line

scenic kettle
#

still nope

idle beacon
#

it will always run

#

it will just say like "you put a number but this should be a string"

scenic kettle
#

ohhhhh mb

#

thx

idle beacon
#

np

river trail