Code QuizIntermediate

Declaring a Generic Function

Spot why this identity function fails to recognize its type parameter.

Codetypescript
function identity(value: T): T {
  return value;
}

const result = identity("hello");

What is the bug in this generic function declaration?