gavr123456789 / Niva

Smalltalk like programming language
https://gavr123456789.github.io/niva-site
41 stars 2 forks source link

Stop generating single expression message if there a single expression in the body #310

Closed gavr123456789 closed 2 weeks ago

gavr123456789 commented 2 weeks ago
Program c::[Int, Int -> Int] = [
  c Int: 3 Int: 6
]
fun Program.c(c: (Int,Int,) -> Int): Unit = 
//@ main.niva:::70
(c)(3, 6)