Basic error even when declaring variables?

using UnityEngine;  
using System.Collections;

public class Flashlight : MonoBehaviour {

    public var flashlight : GameObject;

    function Start()
    {
    }
    function Update()
    {
    }
}

Assets/Scripts/Flashlight.cs(6,23): error CS1519: Unexpected symbol `:' in class, struct, or interface member declaration

Assets/Scripts/Flashlight.cs(6,43): error CS1519: Unexpected symbol `;' in class, struct, or interface member declaration

Whats wrong with the ':' & ';'?

You're using a mishmash of C# and JS; I have no idea what kind of script you're trying to write. 8-O

Here it is in C#:

using UnityEngine;  
using System.Collections;

public class Flashlight : MonoBehaviour {

public GameObject flashlight;

void Start() {
}

void Update() {
}

}

And here it is in JS:

var flashlight : GameObject;

function Start() {
}

function Update() {
}

The template files should have shown you this, however.