UCE0001: ';' expected. Insert a semicolon at the end

Hi. I’m having an issue with my code. I entered the exact code it said to in the tutorial, and then I even went so far as to copy-paste the exact code the guy had written down in the website. But it still gave me the same error.

The code in question:

 function Update () {
   if(Input.GetButtonDown("Fire1")) {
	  var gunsound : AudioSource = GetComponent.<AudioSource>{};
	  gunsound.Play();
	  GetComponent.<Animation>().Play("GunShot");
    }
 }

Thanks.

replace the curly braces on the GetComponent with normal ones