I'm getting the following error:

```
% cat test.jl
type Test
    func::Function

    function Test()
        func = function () end
        new(func)
    end
end

Test()
% julia test.jl
ERROR: func not defined
 in Test at /home/xhochy/test.jl:5
 in include_from_node1 at loading.jl:120
while loading /home/xhochy/test.jl, in expression starting on line 10
```

Maybe this is a Julia bug and it should work.