I get this (minor) error using dmd 1.036, I don't know if it's been 
discovered or not.

test.d(20): Error: template foo!(int) is not a member of actor.world
test.d(20): Error: function expected before (), not 0 of type int

// And heres the code that causes it
class World {
        public void foo(T)() {
        }
        
}
class Actor {
        World _world;
        
        public World world() {
                return this._world;
        }
}

void main() {
        auto actor = new Actor;
        actor._world = new World;
        
        actor.world().foo!(int)(); // This works fine
        actor.world.foo!(int)(); // This causes the error
}

Reply via email to