]> Repositorios git - scryer-prolog.git/commitdiff
put_char/[1,2]: throw type errors for atoms that are not characters
authorMarkus Triska <[email protected]>
Wed, 17 Jun 2020 22:09:33 +0000 (00:09 +0200)
committerMarkus Triska <[email protected]>
Wed, 17 Jun 2020 22:15:00 +0000 (00:15 +0200)
Example:

    ?- put_char(hello).
    %@ caught: error(type_error(character,hello),put_char/2)

src/machine/system_calls.rs

index 9edac5763cafb70bc0bf76472b846689f5ed6239..a3943b8b58e19d3d9ffbee9cd6f73a43afc9f790 100644 (file)
@@ -1905,7 +1905,6 @@ impl MachineState {
                                         }
                                     }
                                     _ => {
-                                        unreachable!()
                                     }
                                 }
                             }