Allow binary operators to be used as lambdas #876

Merged
ghallak merged 7 commits from ghallak/228 into master 2022-06-03 18:12:24 +09:00
Showing only changes of commit 642f5a4da3 - Show all commits

View File

@ -3,7 +3,7 @@ include "List.aes"
contract C = contract C =
type state = int type state = int
function sum(l : list(bool)) : bool = List.foldl((||), false, l) function any(l : list(bool)) : bool = List.foldl((||), false, l)
entrypoint init() = entrypoint init() =
let bad_application = (+)(1) let bad_application = (+)(1)