view src/testdir/test_comparators.vim @ 21170:8c494353c6bc v8.2.1136

patch 8.2.1136: Vim9: return type of argv() is always any Commit: https://github.com/vim/vim/commit/846178a72ca0860073d47fc0dc95f98d15f1d921 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 5 17:04:13 2020 +0200 patch 8.2.1136: Vim9: return type of argv() is always any Problem: Vim9: return type of argv() is always any. Solution: Use list<string> if there is no argument.
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Jul 2020 17:15:03 +0200
parents 140d51d5b5c3
children 08940efa6b4e
line wrap: on
line source

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