checkNoConflict(sym, FINAL, PRIVATE);
    void validate(Symbol sym) {	checkNoConflict(sym, DEFERRED, PRIVATE);	checkNoConflict(sym, FINAL, PRIVATE);	checkNoConflict(sym, FINAL, SEALED);	checkNoConflict(sym, PRIVATE, PROTECTED);	checkNoConflict(sym, PRIVATE, OVERRIDE);	checkNoConflict(sym, DEFERRED, FINAL);	if ((sym.flags & ABSTRACTCLASS) != 0 && sym.kind != CLASS) {	    error(sym.pos, "`abstract' modifier can be used only for classes; " + 		  "\nit should be omitted for abstract members");	}	if ((sym.flags & OVERRIDE) != 0 && sym.kind == CLASS) {	    error(sym.pos, "`override' modifier not allowed for classes");	}	if ((sym.flags & DEF) != 0 && sym.owner().isPrimaryConstructor() &&	    (sym.owner().primaryConstructorClass().flags & CASE) != 0) {	    error(sym.pos, "`def' modifier not allowed for case class parameters"); 	}	/*!!!	if ((sym.flags & REPEATED) != 0 && sym.owner().isPrimaryConstructor()) {	    error(sym.pos, "`*' modifier not allowed for class parameters"); 	}	*/	if ((sym.flags & DEFERRED) != 0) {	    if (sym.owner().kind != CLASS || 		(sym.owner().flags & MODUL) != 0 ||		sym.owner().isAnonymousClass()) {		error(sym.pos, 		    "only classes can have declared but undefined members" + 		    (((sym.flags & MUTABLE) == 0) ? ""		     : "\n(Note that variables need to be initialized to be defined)"));		sym.flags &= ~DEFERRED;	    } 	}	if ((sym.flags & OVERRIDE) != 0) {	    int i = -1;	    if (sym.owner().kind == CLASS) {		Type[] parents = sym.owner().info().parents();		i = parents.length - 1; 		while (i >= 0 &&		       parents[i].lookupNonPrivate(sym.name).kind == NONE)		    i--;	    }	    if (i < 0) {		error(sym.pos, sym + " overrides nothing");		sym.flags &= ~OVERRIDE;	    }	}    }