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.
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.