fix Issue 10818 - Allow parameterized enum declaration