lambdaWrongVariable.wacc 149 Bytes
Newer Older
1
# Tries to use nonexistent variable in lambda.
Males, Sebastian's avatar
Males, Sebastian committed
2
3
4
5
6
7
8
9
10
11

# Output:
# #semantic_error#

# Exit:
# 200

# Program:

begin
12
  bool{bool} f = (\(bool x) -> y)
Males, Sebastian's avatar
Males, Sebastian committed
13
end