slavapestov/factor — Issue #241: Inaccurate "Cannot apply call to a runtime value" compile error
Author: jckarter
Created: 2011-10-08 00:02:55+00:00
State: open
Labels: compiler

These definitions compile:

```factor
: foo ( quot -- ) call ; inline
: bar ( quot -- ) [ call ] foo ; inline
: bas ( -- ) [ "whatevs" get call( -- ) ] bar ;
```

Changing `bar` to invoke a combinator before it `call`s its own argument causes a bogus compiler error:

```factor
: bar ( quot -- ) [ { 1 2 3 } [ . ] each call ] foo ; inline
```