컴파일러 오류 CS1586
업데이트: 2007년 11월
오류 메시지
배열을 만들 때에는 배열 크기 또는 배열 이니셜라이저가 있어야 합니다.
Array creation must have array size or array initializer
배열을 잘못 선언했습니다.
다음 샘플에서는 CS1586 오류가 발생하는 경우를 보여 줍니다.
// CS1586.cs
using System;
class MyClass
{
public static void Main()
{
int[] a = new int[]; // CS1586
// try the following line instead
int[] b = new int[5];
}
}