Hey
i need help
thats my code
package;
class Main {
trace( "test" );
}
terminal say
…/…/hx/Main.hx:8: characters 4-9 : Unexpected trace
The terminal process terminated with exit code: 1
Hey
i need help
thats my code
package;
class Main {
trace( "test" );
}
terminal say
…/…/hx/Main.hx:8: characters 4-9 : Unexpected trace
The terminal process terminated with exit code: 1
Your code need to be inside a function, for the main function it also has to be static:
class Main {
static function main() {
trace("test");
}
}
See Hello world - Beginner - Haxe programming language cookbook and Declare classes - Beginner - Haxe programming language cookbook for some introductions.
facepalm
ty ^^
have a nice day
© 2018-2020 Haxe Foundation - Powered by Discourse