23 lines
319 B
Plaintext
23 lines
319 B
Plaintext
# Two overloads with different pair parameters when called with a
|
|
# `null` directly leads to ambiguity.
|
|
|
|
# Output:
|
|
# #semantic_error#
|
|
|
|
# Exit:
|
|
# 200
|
|
|
|
# Program:
|
|
|
|
begin
|
|
int f(pair(int, char) x) is
|
|
return 1
|
|
end
|
|
|
|
int f(pair(int, bool) x) is
|
|
return 2
|
|
end
|
|
|
|
int result = call f(null) ;
|
|
println result
|
|
end |