You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the following code, RCA produces the expected error message but only on the entry point rather than on the line that produced the dynamic string (playground):
namespace MyQuantumProgram {
operation ApplyAndMeasure(op : Qubit => Unit, q : Qubit) : Bool {
op(q);
return MResetZ(q) == One;
}
@EntryPoint()
operation Main() : Result[] {
use q = Qubit();
let b = ApplyAndMeasure(H, q);
let s = b ? "One" | "Zero";
return [];
}
}
The is reported at Main() which is expected but missing from let s = b ? "One" | "Zero";
The text was updated successfully, but these errors were encountered:
This fixes minor issues in error spans used when reporting RCA check errors to avoid duplicate errors being reported for generated entry expressions that come from `@EntryPoint` attributed callables in standalone Q# files.
Fixes#1537.
This fixes minor issues in error spans used when reporting RCA check
errors to avoid duplicate errors being reported for generated entry
expressions that come from `@EntryPoint` attributed callables in
standalone Q# files.
Fixes#1537.
With the following code, RCA produces the expected error message but only on the entry point rather than on the line that produced the dynamic string (playground):
The is reported at
Main()
which is expected but missing fromlet s = b ? "One" | "Zero";
The text was updated successfully, but these errors were encountered: