It works fine, until the added resistance causes the dimmer and cord to overheat and start a fire, and also destroys the motor on the tool by lowering the amperage available.
Don't ever do this! that is why ceiling fans are not attatched to a dimmer! Very bad advice! Fire hazard for sure.