use of invariant has been an error for a while
Merge pull request #671 from WalterBright/error-invariant

use of invariant has been an error for a while