Diagnostic and cause
링크Semicolon in delimiter list
- 계열
- topaz
- 단계
- layout
- 코드
TPZ1001
원인과 조건
List elements use commas. A semicolon in a delimiter list produces TPZ1001 at the semicolon.
관련 규칙 · Trigger and repair →대응
Use a comma between list elements. Put independent statements in a block that accepts statements.
Compiler phase: layout.
Compiler explanation: A semicolon appeared where a comma/newline-separated delimiter list is required.
Message templates. The marker ⟨value⟩ stands for text computed for the reported program.
;does not separate items inside a delimiter list; use,Source
Observed for the candidate in Topaz 5.21.3. Execution
- error[TPZ1001]:
;does not separate items inside a delimiter list; use,
A semicolon occurs inside a list whose elements require a list separator. Statement separation does not make it an element separator.
Trigger and repair
List elements use commas. A semicolon in a delimiter list produces TPZ1001 at the semicolon.
Response
링크Use a comma between list elements. Put independent statements in a block that accepts statements.
Reproduction and verification
링크Rejected program
링크let values = [1; 2]
표준 출력 없음.기대 결과
The expected diagnostic, cause, source location, and accompanying diagnostics are specified below. The verification status records whether this program has been run.
Corrected program
링크let values = [1, 2]
기대 결과
기대 결과
검사가 프로그램을 받아들입니다. 종료 코드 0.
This program applies the repair described above. The verification status records whether it has been run.