lambdaBadArguments.wacc 153 Bytes
Newer Older
Males, Sebastian's avatar
Males, Sebastian committed
1
2
3
4
5
6
7
8
9
10
11
12
13
# Tries to call lambda with wrong arguments type.

# Output:
# #semantic_error#

# Exit:
# 200

# Program:

begin
  int r = call (\(bool x) -> x)(2)
end