fix arity of prcess_wait builtin errors
This commit is contained in:
committed by
Bennet Bleßmann
parent
3a6b92d227
commit
b2d639b159
@@ -8654,7 +8654,7 @@ impl Machine {
|
|||||||
|
|
||||||
pub(crate) fn process_wait(&mut self) -> CallResult {
|
pub(crate) fn process_wait(&mut self) -> CallResult {
|
||||||
fn stub_gen() -> Vec<FunctorElement> {
|
fn stub_gen() -> Vec<FunctorElement> {
|
||||||
functor_stub(atom!("process_wait"), 2)
|
functor_stub(atom!("process_wait"), 3)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Process
|
// Process
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ use_module(library(process)),process_create([],[],[stdin(invalid),process(P)]),p
|
|||||||
|
|
||||||
```trycmd
|
```trycmd
|
||||||
$ scryer-prolog -f --no-add-history -g 'use_module(library(process)), process_wait(50, _), halt'
|
$ scryer-prolog -f --no-add-history -g 'use_module(library(process)), process_wait(50, _), halt'
|
||||||
use_module(library(process)),process_wait(50,_[..]),halt causes: error(type_error(process,50),process_wait/2)
|
use_module(library(process)),process_wait(50,_[..]),halt causes: error(type_error(process,50),process_wait/3)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -54,6 +54,6 @@ use_module(library(process)),process_id(50,_[..]),halt causes: error(type_error(
|
|||||||
|
|
||||||
```trycmd
|
```trycmd
|
||||||
$ scryer-prolog -f --no-add-history -g 'use_module(library(process)), process_release(50), halt'
|
$ scryer-prolog -f --no-add-history -g 'use_module(library(process)), process_release(50), halt'
|
||||||
use_module(library(process)),process_release(50),halt causes: error(type_error(process,50),process_wait/2)
|
use_module(library(process)),process_release(50),halt causes: error(type_error(process,50),process_wait/3)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user