enum error in c# scripting

public enum GameState<------------ {
menu,
inGame,
gameOver
}
public class DGameManager : MonoBehaviour {

public GameObject instance;
public GameState currentGameState=GameState.menu;
private void Awake()
{
    instance = this.gameObject;
}
private void Start()
{
    StartGame();
}
public void StartGame()
{
    setGameState(GameState.inGame);
}
public void GameOver()
{
    setGameState(GameState.gameOver);
}
public void BackToMenu()
{
    setGameState(GameState.menu);
}

void setGameState(GameState newGameState)
{
if(newGameState==GameState.menu)
{

    }
    if (newGameState == GameState.inGame)
    {

    }
    if (newGameState == GameState.gameOver)
    {

    }
}

}

frist line showing erroralready contains definition for GameState.

Can you edit to have the all code with nice indentation to have a better look to check error ? :wink:
But i don’t find error in your code and i verified in a new project every thing work if your enum declaration is like that

public enum GameState { menu, inGame, gameOver };

You have define an other enumeration in an other file in your project, check all your file.
Basically this error come when you have 2 same class / enumeration declarations in your project files