test.d(22): Error: cannot append type test.Path to type test.Path This is due to the changing some code that was appending. Obviously we can't append a type to itself. Would be nice if the error message was more clear like: Type test.Path is not an array. Cannot append to itself.