12.6.7.8 CPP0007 - 유효하지 않은 타입 필드(Invalid Type Field)
12.6.7.8 CPP0007 - 유효하지 않은 타입 필드(Invalid Type Field)
설명(Description)
마셜링 타입 주석의 type 필드는 문자열 리터럴이어야 하며, 그 외의 것을 제공하면 이 오류가 발생합니다.
예제(Examples)
다음 예제들은 CPP0007을 생성합니다.
@:semantics(value)
@:cpp.ValueType({ type : Foo }) // CPP0007
extern class Bar {
function new():Void;
}
function main() {
final b = new Bar();
}
@:semantics(value)
@:cpp.ValueType({ type : 12 }) // CPP0007
extern class Bar {
function new():Void;
}
function main() {
final b = new Bar();
}