13 lines
282 B
Plaintext
13 lines
282 B
Plaintext
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
|
|
because provided type contains v, where v is a number
|