2022-03-02 18:26:58 -05:00
|
|
|
ANNOTATED PROGRAM:
|
|
|
|
local x : string = "hello"
|
|
|
|
local y : string = 37.0
|
|
|
|
return x .. y
|
|
|
|
|
|
|
|
RUNTIME ERROR:
|
|
|
|
value 37.0 is not a string
|
|
|
|
in return statement
|
|
|
|
|
|
|
|
TYPE ERROR:
|
|
|
|
Local variable y has type string but expression has type number
|
2022-03-23 16:02:57 -04:00
|
|
|
because provided type contains v, where v is a number
|