Unexpected token error

When ever I try and run this code I get an error saying
Assets/InstantiateInput.js(17,71): BCE0043: Unexpected token: false.

This error occurs in this line of code

public function SetParent(InputAppear: Transform, worldPositionStays: false) {
}

Which has been copy and pasted directly from the Unity documentation with the exception of the variables I have changed.
Below is a link to the aforementioned documentation

Any ideas would be greatly appreciated
Thanks

worldPositionStays: boolean

you are defining the TYPE of worldPositionStays. its TYPE is boolean, false is not a TYPE
in c# its called bool instead

Thanks man!
I would have never figured that out by my self.