.enabled with Android

Does .enabled not work on Android? I'm trying something very simple and it works fine while testing it in Unity but when I try to push it to my phone for testing I get the error: 'enabled' is not a member of 'UnityEngine.Component'.

function OnTriggerEnter(other: Collider) {
gameObject.GetComponent("Testscript").enabled = true;

Try this to get around the dynamic typing limitation:

var script : TestScript = gameObject.GetComponent(TestScript); script.enabled = false;