patch 9.0.0740: prop_add_list() gives multiple errors for invalid argument
Problem: prop_add_list() gives multiple errors for invalid argument.
Solution: Only give one error message.
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index 9cdd0da..34c719d 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -383,6 +383,9 @@
call assert_fails('call prop_add_list(test_null_dict(), [[2, 2, 2]])', 'E965:')
call assert_fails('call prop_add_list(#{type: "one"}, test_null_list())', 'E1298:')
call assert_fails('call prop_add_list(#{type: "one"}, [test_null_list()])', 'E714:')
+
+ " only one error for multiple wrong values
+ call assert_fails('call prop_add_list(#{type: "one"}, [[{}, [], 0z00, 0.3]])', ['E728:', 'E728:'])
call DeletePropTypes()
bw!
endfunc