Share via


컴파일러 오류 CS1519

업데이트: 2007년 11월

오류 메시지

클래스, 구조체 또는 인터페이스 멤버 선언에 잘못된 'token' 토큰이 있습니다.
Invalid token 'token' in class, struct, or interface member declaration

형식 앞에 올바르지 않은 한정자를 포함하는 클래스, 구조체 또는 인터페이스 멤버 선언이 있으면 이 오류가 발생합니다. 오류를 해결하려면 잘못된 한정자를 제거합니다.

다음 샘플에서는 CS1519 오류가 발생하는 경우를 보여 줍니다.

// CS1519.cs
public class IMyInterface
{
   checked void f4();   // CS1519
   // Remove "checked" from the line above.
   lock void f5();      // CS1519
   // Remove "lock" from the line above
   namespace;           // CS1519
   // The line above should be removed entirely.
   int i;               // OK
}