put_char/[1,2]: throw type errors for atoms that are not characters
Example:
?- put_char(hello).
%@ caught: error(type_error(character,hello),put_char/2)
This commit is contained in:
@@ -1905,7 +1905,6 @@ impl MachineState {
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
unreachable!()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user