Diagnostic and cause
링크Unknown member or field
- 계열
- topaz
- 단계
- check
- 코드
TPZ5006
원인과 조건
A member call must name a member provided by its receiver type. A string call to lenght is rejected with TPZ5006 at the member name; byteLength is an available zero-argument string method.
관련 규칙 · A member call requires a member on its receiver →대응
Check the receiver type and member spelling. Use a declared member or add the required field or method to your type.
Compiler phase: check/runtime.
Compiler explanation: A member access names a field or method that does not exist on the receiver type.
Message templates. The marker ⟨value⟩ stands for text computed for the reported program.
- ⟨value⟩ has no field
⟨value⟩Source
Observed for the candidate in Topaz 5.21.3. Execution
- error[TPZ5006]:
stringhas no member namedlenght
A member call must name a member provided by its receiver type. A string call to lenght is rejected with TPZ5006 at the member name; byteLength is an available zero-argument string method.
A member call requires a member on its receiver
A member call must name a member provided by its receiver type. A string call to lenght is rejected with TPZ5006 at the member name; byteLength is an available zero-argument string method.
Response
링크Check the receiver type and member spelling. Use a declared member or add the required field or method to your type.
Reproduction and verification
링크Rejected program
링크let text = "Ada"text.lenght()
표준 출력 없음.기대 결과
Repaired program
링크let text = "Ada"text.byteLength()
기대 결과
기대 결과
검사가 프로그램을 받아들입니다. 종료 코드 0.