Procházet zdrojové kódy

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

Ian Goldberg před 7 měsíci
rodič
revize
5206220822
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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();