-1

An exception occurred with the following code block

string text = "foo"

string responseText = "print: " + text;

io:println(responseText);

Error:

mismatched input 'string'. expecting {'but', ';', '?', '+', '-', '*', '/', '%', '==', '!=', '>', '<', '>=', '<=', '&&', '||', '&', '^', '...', '|', '?:', '..<'}
Riyafa Abdul Hameed
  • 7,417
  • 6
  • 40
  • 55

1 Answers1

2

You are missing the semicolon in first line.

string text = "foo";
io:println("print: " + text);
Chamil E
  • 478
  • 3
  • 10