Added typing rule for class literal.