Previously, it would still fail if a forward declaration and declaration for a class were in the same file. Task-number: QTCREATORBUG-20