I've been trying to figure out what I did wrong, and I thinks it's something obvious, but I just can't figure out what. Here is the code with the error:
#pragma strict
var nearObjects : Collider[];
nearObjects = new Array();
function Update () {
nearObjects.Clear();
}