Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sezna committed Feb 4, 2025
1 parent 94a4bfd commit 6816191
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
19 changes: 19 additions & 0 deletions compiler/qsc_frontend/src/typeck/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4695,3 +4695,22 @@ fn field_access_not_ident() {
"##]],
);
}

#[test]
// ref issue #2153
fn struct_syntax_single_field() {
check(
indoc! {"
namespace A {
struct B { C : Int }
function Foo() : Unit {
let b = B(5);
}
}
"},
"",
&expect![[r##"
"##]],
);
}
3 changes: 1 addition & 2 deletions library/fixed_point/src/Facts.qs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import Std.Arrays.Unzipped;
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import Types.FixedPoint;
import Std.Diagnostics.Fact;
import Std.Arrays.IsEmpty, Std.Arrays.Rest;
import Std.Arrays.IsEmpty, Std.Arrays.Rest, Std.Arrays.Unzipped;

/// # Summary
/// Asserts that a quantum fixed-point number is
Expand Down

0 comments on commit 6816191

Please sign in to comment.