Renamed haxe file sample and changed class so that it is a valid file that compiles.

This commit is contained in:
Jason O'Neil 2011-11-04 11:02:39 +08:00 • committed by Fabian Jakobs
commit 8f0a86639a
2 changed files with 17 additions and 8 deletions

View file

@ -0,0 +1,17 @@
class Haxe
{
public static function main()
{
// Say Hello!
var greeting:String = "Hello World";
trace(greeting);
var targets:Array<String> = ["Flash","Javascript","PHP","Neko","C++","iOS","Android","webOS"];
trace("Haxe is a great language that can target:");
for (target in targets)
{
trace (" - " + target);
}
trace("And many more!");
}
}

View file

@ -1,8 +0,0 @@
class MyHaxeClass {
public HelloWorld:Void()
{
// Say Hello!
var greeting = "Hello";
trace(greeting + " World");
}
}