dockimbel/Red — Issue #187: Initial NULL assignment blocks type inference
Author: Kaj-de-Vos
Created: 2011-10-27 21:16:02+00:00
State: open

Red/System []

test: function [
address	[byte-ptr!]
/local x
][
x: null

if yes [
x: address
]
]

*** Compilation Error: Invalid null assignment

This must currently be fixed by specifying the type for X. I guess the type resolver should keep looking to infer the type further on.