scala-subscript / subscript

9 stars 2 forks source link

Allow for "Unit" parameters in scripts #56

Open AndreVanDelft opened 8 years ago

AndreVanDelft commented 8 years ago

The following is accepted: do1WithMessage(s: Script[Any], msg: String) = @gui: let status() = s"$msg..."; s whereas this is not: do1WithMessage(u: => Unit , msg: String) = @gui: let status() = s"$msg..."; u

Something like the second form should also be accepted.