컴파일러 오류 CS1040
업데이트: 2007년 11월
오류 메시지
전처리기 지시문은 줄에서 첫 번째 공백이 아닌 문자로 나타나야 합니다.
Preprocessor directives must appear as the first non-whitespace character on a line
줄에 있는 전처리기 지시문은 해당 줄에서 첫 번째 토큰이 아닙니다. 지시문은 줄에서 첫 번째 토큰이어야 합니다.
다음 샘플에서는 CS1040 오류가 발생하는 경우를 보여 줍니다.
// CS1040.cs
/* Define a symbol, X */ #define X // CS1040
// try the following two lines instead
// /* Define a symbol, X */
// #define X
public class MyClass
{
public static void Main()
{
}
}