view src/testdir/test_comparators.vim @ 24154:6e8f49a4a193 v8.2.2618

patch 8.2.2618: Vim9: cannot use a normal list name to store function refs Commit: https://github.com/vim/vim/commit/3f32788000258aabe078b426e3d71962bee9d2d1 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 17 20:56:38 2021 +0100 patch 8.2.2618: Vim9: cannot use a normal list name to store function refs Problem: Vim9: cannot use a normal list name to store function refs. Solution: Allow a lower case name if it is indexed.
author Bram Moolenaar <Bram@vim.org>
date Wed, 17 Mar 2021 21:00:04 +0100
parents 08940efa6b4e
children
line wrap: on
line source

" Test for comparators

function Test_Comparators()
  try
    let oldisident=&isident
    set isident+=#
    call assert_equal(1, 1 is#1)
  finally
    let &isident=oldisident
  endtry
endfunction

" vim: shiftwidth=2 sts=2 expandtab