Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/Qir/Tools/EntryPointOperationLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private static List<Parameter> GetParams(QsCallable callable)
.ToList();
}

private static Parameter MakeParameter(LocalVariableDeclaration<QsLocalSymbol> parameter)
private static Parameter MakeParameter(LocalVariableDeclaration<QsLocalSymbol, ResolvedType> parameter)
{
var type = MapResolvedTypeToDataType(parameter.Type);
var arrayType = parameter.Type.Resolution is QsTypeKind.ArrayType innerType
Expand Down
22 changes: 11 additions & 11 deletions src/Simulation/QSharpFoundation/Diagnostics/Facts.qs
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ namespace Microsoft.Quantum.Diagnostics {
open Microsoft.Quantum.Math;

/// # Summary
/// Declares that a classical condition is true.
/// Checks whether a classical condition is true, and throws an exception if it is not.
///
/// # Input
/// ## actual
/// The condition to be declared.
/// The condition to be checked.
/// ## message
/// Failure message string to be printed in the case that the classical
/// Failure message string to be used as an error message if the classical
/// condition is false.
///
/// # See Also
/// - Microsoft.Quantum.Diagnostics.Contradiction
///
/// # Example
/// The following Q# snippet will fail:
/// The following Q# snippet will throw an exception:
/// ```qsharp
/// Fact(false, "Expected true.");
/// ```
Expand All @@ -27,13 +27,13 @@ namespace Microsoft.Quantum.Diagnostics {
}

/// # Summary
/// Declares that a classical condition is false.
/// Checks whether a classical condition is false, and throws an exception if it is not.
///
/// # Input
/// ## actual
/// The condition to be declared.
/// The condition to be checked.
/// ## message
/// Failure message string to be printed in the case that the classical
/// Failure message string to be used as an error message if the classical
/// condition is true.
///
/// # See Also
Expand All @@ -50,18 +50,18 @@ namespace Microsoft.Quantum.Diagnostics {
}

/// # Summary
/// Declares that a given floating-point value represents a finite
/// number, failing when this is not the case.
/// Checks whether a given floating-point value represents a finite
/// number, and throws an exception if this is not the case.
///
/// # Input
/// ## d
/// The floating-point value that is to be checked.
/// ## message
/// Failure message to be printed in the case that `d` is either
/// Failure message to be used as an error message if `d` is either
/// not finite, or not a number.
///
/// # Example
/// The following Q# code will fail when run:
/// The following Q# code will throw an exception:
/// ```qsharp
/// FiniteFact(NaN(), "NaN is not a finite number.");
/// ```
Expand Down