deathbeam / spoon

:ramen: Spoon is a programming language that runs blazingly fast, compiles to native code and works everywhere.
https://spoonlang.org
MIT License
56 stars 11 forks source link

No semilicon after "null" #10

Closed Peekmo closed 8 years ago

Peekmo commented 8 years ago

After a null on variable declaration, no semilion is added

self class

def self.main()
  def myvar : String = null
  def myarray = Array<String>.new()
end
deathbeam commented 8 years ago

For me it is working, output:

package ;using Lambda; class HelloWorld {

static public function main(){
  var myvar : String = null;
};}
Peekmo commented 8 years ago

In fact, sorry. It fails only when there's a second declaration under (I updated the example)