Compilation error #214

Closed
meijeru opened this Issue Mar 17, 2012 · 1 comment

Comments

Projects
None yet
1 participant

meijeru commented Mar 17, 2012

I compiled the following skeleton program:

Red/System []
f: func [
    res [pointer! [integer!]]
    return: [integer!]
    /local
        res0            ; start of result
][
    res0: res
    ; do something with res0
    res - res0
]

and got the following error, which is not justified, I think:

-= Red/System Compiler =-
Compiling tests/bug.reds ...
*** Compilation Error: wrong return type in function: f
*** expected: [integer!], found: [pointer! [integer!]]
*** in file: %tests/bug.reds
*** in function: f
*** at line: 10
*** near: [-
    res res0
]

meijeru commented Mar 17, 2012

Sorry, this was a misunderstanding.

meijeru closed this Mar 17, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment