Browse Source

Allow statements like C = a*B where a is a _public_ Scalar

Ian Goldberg 3 months ago
parent
commit
5206220822
1 changed files with 2 additions and 2 deletions
  1. 2 2
      sigma_compiler_core/src/sigma/codegen.rs

+ 2 - 2
sigma_compiler_core/src/sigma/codegen.rs

@@ -330,11 +330,11 @@ impl<'a> CodeGen<'a> {
             };
             let AExprType::Point {
                 is_vec: right_is_vec,
-                is_pub: false,
+                ..
             } = right_type
             else {
                 let expr_str = quote! { #expr }.to_string();
-                panic!("Right side of = does not evaluate to a private Point: {expr_str}");
+                panic!("Right side of = does not evaluate to a Point: {expr_str}");
             };
             if *left_is_vec != right_is_vec {
                 let expr_str = quote! { #expr }.to_string();