view src/testdir/sautest/autoload/auto9.vim @ 23788:d12ef361d9de v8.2.2435

patch 8.2.2435: setline() gives an error for some types Commit: https://github.com/vim/vim/commit/3445320839a38b3b0c253513b125da8298ec27d6 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 31 13:08:38 2021 +0100 patch 8.2.2435: setline() gives an error for some types Problem: setline() gives an error for some types. Solution: Allow any type, convert each item to a string.
author Bram Moolenaar <Bram@vim.org>
date Sun, 31 Jan 2021 13:15:04 +0100
parents b0b57d91671c
children 307341b9c227
line wrap: on
line source

vim9script

func auto9#getsome()
  return 'some'
endfunc

def auto9#add42(count: number): number
  return count + 42
enddef