12.6.7.5 CPP0004 - 포인터 생성자(Pointer Constructors)
12.6.7.5 CPP0004 - 포인터 생성자(Pointer Constructors)
설명(Description)
cpp.PointerType으로 주석 처리된 extern 클래스는 생성자를 가질 수 없으며, 이러한 클래스에 생성자를 추가하면 이 오류를 생성합니다.
예제(Examples)
다음 예제는 CPP0004를 생성합니다.
@:semantics(value)
@:cpp.PointerType
extern class Foo {
function new():Void; // CPP0004
}
function main() {
final f = new Foo();
}