Implicit lists are assignable after extraction. 48/11548/2
Cedric Delamarre [Mon, 20 May 2013 07:27:10 +0000 (09:27 +0200)]
r = 1:5;
test_run("elementary_functions","toeplitz",["no_check_error_output" ]);

Change-Id: If1650a9595aa48da954c23eb86ce9443f9ce06d2

scilab/modules/ast/includes/run_AssignExp.hxx

index edc334f..50c85b8 100644 (file)
@@ -46,12 +46,6 @@ void visitprivate(const AssignExp  &e)
                 result_set(NULL);
             }
 
-            if (pIT->isAssignable() == false)
-            {
-                result_set(NULL);
-                return;
-            }
-
             if (pIT->isImplicitList())
             {
                 if (pIT->getAs<ImplicitList>()->isComputable())
@@ -62,6 +56,12 @@ void visitprivate(const AssignExp  &e)
                 }
             }
 
+            if (pIT->isAssignable() == false)
+            {
+                result_set(NULL);
+                return;
+            }
+
             const ReturnExp *pReturn = dynamic_cast<const ReturnExp*>(&e.right_exp_get());
             if (pReturn)
             {