AndreVanDelft / scala

The SubScript extension to the Scala programming language
http://www.subscript-lang.org/
12 stars 1 forks source link

Certain function calls don't convert to the normal code automatically #50

Open anatoliykmetyuk opened 9 years ago

anatoliykmetyuk commented 9 years ago

If there's a script variable passed to an ordinary function call as an argument, it won't compile:

def script live = var x = 3 ; println(x)

This code will fail to compile with the following error: error: not found: value _println

However, the following code works perfectly:

  var x = 3;
  def script live = println(x)