Picking Up Semicolons in FLEX?

Hi, i have made a simple .as file in flex with the code below:


 
package {
 import flash.display.Sprite;
 public class ProgrammingBasic extends Sprite
 {
  public function ProgrammingBasic()
  {
   var test:Number=9
   trace(test)
  }
 }
}

As you can see after the value 9 and the trace statement, there are no semi-colons. When i debug the file, it runs fine outputting the value, however what i don’t understand is why does it not pick the fact that there should be a semicolon at the end of each statement. Nearly all programming languages like Java would see this as being systax error or something like that. Can somebody tell me why it does not pick this up even though it runs the file perfectly?

Should this even happen? Or is this part of the coding standard?