It may be because you are missing a semicolon at the end of the line, it can be sensitive to missed semicolons.
you are also missing the close bracket for the function. it should be:
fn srt() [
out("hello");
]
should work, if there are still problems I'll take a deeper look