lambdaWrongFuncPointer.wacc 135 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
# Assigns wrong type to a lambda.

# Output:
# #semantic_error#

# Exit:
# 200

# Program:

begin
  bool{int} f = (\(bool x) -> x)
end