2016-09-06 6 views
0

다음 클래스 구조를 가지고 있다면 Embarcadero RAD Studio XE6을 사용하여 클래스 완성 (Ctrl + Shift + C를 통해)을 호출 할 수 없습니다. 프로그램이 정상적으로 작동하지만 IDE에서 다음과 같은 오류가 발생합니다. 그것을 사용하고 싶다면 다소 귀찮은 DescriptionArray을 주석해야합니다.Delphi RAD Studio 클래스 완성 문제

따라서 누군가가 알고있는 경우 문제가있는 곳이나 내가 잘못하고있는 것을 알고 싶습니다.

GT_Class = class 
type 
    TCustomEnum = (ceValue1, ceValue2, ceValue3, ceValue4); 
    TCustomSet = set of TCustomEnum; 

const 
    DescriptionArray : array[TCustomEnum] of string = ('Description1', 'Description2', 'Description3', 'Description4'); 
end; 

오류 메시지가

Error message

+0

처음에는 클래스에서 완료 할 것이 없기 때문이라고 생각합니다. –

+4

XE6에서는 오류를 재현하지만 베를린에서는 오류를 재현 할 수 없습니다. const의 가시성을 띄우면 클래스 완성을 호출 할 때 오류가 제거됩니다. –

+0

이 클래스의 클래스 완성을 호출 할 때 어떤 일이 발생할 것으로 예상합니까? –

답변

0

commentStefan Glienke이 해결. 실제로 Delphi XE6의 버그이며 다른 버전에서도 해결되었습니다. 기본적으로 설정되어있는 경우에도 표시 여부를 정의해야합니다.

GT_Class = class 
public 
    type 
    TCustomEnum = (ceValue1, ceValue2, ceValue3, ceValue4); 
    TCustomSet = set of TCustomEnum; 

    const 
    DescriptionArray : array[TCustomEnum] of string = ('Description1', 'Description2', 'Description3', 'Description4'); 
end;