Why doesnt as3 throw an error with addEventListener(string, function)

Hi

the callback function uses a parameter from the Event type, but why doesnt as3 give an error when you type

addEventListener(“click”, func);

function func(event:Event):void
{

}

func needs an argument from the type Event, but how does as3 ignore this?