Unity C# - RaycastHit internal error?

this is my code

RaycastHit hit = new RaycastHit();
		if(Physics.Raycast(transform.position, trans­form.TransformDirection(Vector3.forward)­, hit)){
			distance = hit.distance;
		}

these are my errors

"Unexpected symbol "

“Parsing error”

I don’t get it, the code looks right, can some one please tell me what I am doing wrong?

There is no function of Raycast with these parameter. You should select one from given types
Look at them here

Well example for you is
float deplovementheight = 1f;

RaycastHit hit;
Ray ray = new Ray(transform.position,Vector3.Forward);

Debug.DrawRay(transform.position,Vector3.Forward*deplovementheight); // This will for debuging in will show the ray in playmode

if( Physics.Raycast(ray, out hit,deplovementheight)){

//DO YOU WORK HERE	

}