UnityScript self.ExampleList.get_(self a) cannot be assigned to

Hi everyone, I have an error in my Unityscript script and I not sure what is wrong. it says self.ExampleList.get_(self a) cannot be assigned to. Any idea how to fix it?

#pragma strict

import System.Collections.Generic;
var ExampleList:List.<int> = new List.<int>();
public var a:int;
function OnGUI(){
			   for ( a = 0; a <ExampleList.Count; a++)
if (GUILayout.Button("+", GUILayout.Width(50), GUILayout.Height(30)))
			   {

//self.ExampleList.get_(self a) cannot be assigned to
                   ExampleList[a]++;
}


for (var a = 0; a <ExampleList.Count; a++)
//there is already a variable named a.
for (var a = 0; a <ExampleList.Count; a++)

I guess Unityscript can’t properly handle the indexer property of the list class when it comes to the post increment operator. Try this instead:

#pragma strict
import System.Collections.Generic;

var ExampleList:List.<int> = new List.<int>();
function OnGUI()
{
    for (var a = 0; a < ExampleList.Count; a++)
    {
        if (GUILayout.Button("+", GUILayout.Width(50), GUILayout.Height(30)))
        {
            ExampleList[a] = ExampleList[a] + 1;
        }
    }
}

Btw: always use local variables for a for loop. A for loop variable should never be a member variable of a class.