diff test/struct.tst @ 24690:2ce26c4cb323

More descriptive error message for assignment to empty structure (bug #36003). * errwarn.cc (err_invalid_structure_assignment): New error message function * errwarn.h (err_invalid_structure_assignment): New error message function * pt-eval.cc (tree_evaluator::visit_simple_assignment): Call new error message function instead of misleading error message
author Joe Winegarden <joewino19@gmail.com>
date Tue, 23 Jan 2018 17:05:13 -0500
parents 194eb4bd202b
children 6652d3823428
line wrap: on
line diff
--- a/test/struct.tst	Mon Feb 05 16:29:49 2018 +0100
+++ b/test/struct.tst	Tue Jan 23 17:05:13 2018 -0500
@@ -164,7 +164,7 @@
 %! a = struct ("value", {1, 2, 3, 4, 5});
 %! [a(2:4).value] = 1;
 
-%!error <invalid assignment to cs-list outside multiple assignment>
+%!error <invalid dot name structure assignment>
 %! c(4, 4, 4, 4).name  = "a";
 %! c(3, 3, 3, 3).value = 1;
 %! c([1, 3], 2, :, [3, 4]).value = 1;