File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,13 +86,13 @@ func Test_empty()
8686endfunc
8787
8888func Test_test_void ()
89- call assert_fails (' echo 1 == test_void()' , ' E685 :' )
89+ call assert_fails (' echo 1 == test_void()' , ' E1031 :' )
9090 if has (' float' )
91- call assert_fails (' echo 1.0 == test_void()' , ' E685 :' )
91+ call assert_fails (' echo 1.0 == test_void()' , ' E1031 :' )
9292 endif
9393 call assert_fails (' let x = json_encode(test_void())' , ' E685:' )
9494 call assert_fails (' let x = copy(test_void())' , ' E685:' )
95- call assert_fails (' let x = copy([test_void()])' , ' E685 :' )
95+ call assert_fails (' let x = copy([test_void()])' , ' E1031 :' )
9696endfunc
9797
9898func Test_len ()
Original file line number Diff line number Diff line change @@ -591,7 +591,6 @@ copy_tv(typval_T *from, typval_T *to)
591591 case VAR_NUMBER :
592592 case VAR_BOOL :
593593 case VAR_SPECIAL :
594- case VAR_VOID :
595594 to -> vval .v_number = from -> vval .v_number ;
596595 break ;
597596 case VAR_FLOAT :
@@ -664,6 +663,9 @@ copy_tv(typval_T *from, typval_T *to)
664663 ++ to -> vval .v_dict -> dv_refcount ;
665664 }
666665 break ;
666+ case VAR_VOID :
667+ emsg (_ (e_cannot_use_void_value ));
668+ break ;
667669 case VAR_UNKNOWN :
668670 case VAR_ANY :
669671 internal_error_no_abort ("copy_tv(UNKNOWN)" );
Original file line number Diff line number Diff line change @@ -750,6 +750,8 @@ static char *(features[]) =
750750
751751static int included_patches [] =
752752{ /* Add new patch number below this line */
753+ /**/
754+ 3007 ,
753755/**/
754756 3006 ,
755757/**/
You can’t perform that action at this time.
0 commit comments