Share via


컴파일러 오류 CS1547

업데이트: 2007년 11월

오류 메시지

이 컨텍스트에는 'void' 키워드를 사용할 수 없습니다.
Keyword 'void' cannot be used in this context

컴파일러에서 void 키워드의 잘못된 사용을 발견했습니다.

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

// CS1547.cs
public class MyClass
{
   void BadMethod()
   {
      void i;   // CS1547, cannot have variables of type void
   }

   public static void Main()
   {
   }
}