Share via


컴파일러 오류 CS0409

업데이트: 2007년 11월

오류 메시지

'type parameter' 형식 매개 변수의 제약 조건 절을 이미 지정했습니다. 형식 매개 변수의 모든 제약 조건은 하나의 where 절에 지정해야 합니다.
A constraint clause has already been specified for type parameter 'type parameter'. All of the constraints for a type parameter must be specified in a single where clause.

하나의 형식 매개 변수에 대해 여러 제약 조건 절(where 절)이 발견되었습니다. 잘못 사용된 where 절을 제거하거나 각 절에 고유한 형식 매개 변수가 하나만 있도록 where 절을 수정하십시오.

// CS0409.cs
interface I
{
}

class C<T1, T2> where T1 : I where T1 : I  // CS0409 – T1 used twice
{
}