Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/QsCompiler/DataStructures/Diagnostics.fs
Original file line number Diff line number Diff line change
Expand Up @@ -552,13 +552,13 @@ type DiagnosticItem =
| ErrorCode.UnsupportedResultComparison -> "The target {0} does not support comparing measurement results."
| ErrorCode.ResultComparisonNotInOperationIf ->
"Measurement results cannot be compared here. " +
"The execution target {0} only supports comparing measurement results as part of the condition of an if- or elif-statement in an operation."
"The target {0} only supports comparing measurement results as part of the condition of an if- or elif-statement in an operation."
| ErrorCode.ReturnInResultConditionedBlock ->
"A return statement cannot be used here. " +
"The execution target {0} does not support return statements in conditional blocks that depend on a measurement result."
"The target {0} does not support return statements in conditional blocks that depend on a measurement result."
| ErrorCode.SetInResultConditionedBlock ->
"The variable \"{0}\" cannot be reassigned here. " +
"In conditional blocks that depend on a measurement result, the execution target {1} only supports reassigning variables that were declared within the block."
"In conditional blocks that depend on a measurement result, the target {1} only supports reassigning variables that were declared within the block."

| ErrorCode.CallableRedefinition -> "Invalid callable declaration. A function or operation with the name \"{0}\" already exists."
| ErrorCode.CallableOverlapWithTypeConstructor -> "Invalid callable declaration. A type constructor with the name \"{0}\" already exists."
Expand Down