Can't pass enum in CONTEXT #293

Closed
Kaj-de-Vos opened this Issue Nov 6, 2012 · 1 comment

Projects

None yet

2 participants

@Kaj-de-Vos
Contributor
Red/System []

c: context [
    #enum e! [x]

    f: function [
        a       [e!]
        return: [logic!]
    ][
        zero? a
    ]
]

*** Compiler Internal Error: Script Error : resolve-aliased expected type argument of type: block
*** Where: resolve-expr-type
*** Near: [forall args [
either all [decimal? args/1 spec/2/1 = 'float32!] [
args/1: make action-class [
action: 'type-cast
type: [float32!]
data: args/1
]
append/only list spec/2
] [
append/only list check-expected-type name args/1 spec/2
]
spec: skip spec 2
]
if all
]

Owner

This is a regression caused by the fix for #290.

@dockimbel dockimbel closed this Nov 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment