patch 8.2.0508: Vim9: func and partial types not done yet
Problem: Vim9: func and partial types not done yet
Solution: Fill in details about func declaration, drop a separate partial
declaration.
diff --git a/src/testdir/test_vim9_disassemble.vim b/src/testdir/test_vim9_disassemble.vim
index 36c098c..e71782b 100644
--- a/src/testdir/test_vim9_disassemble.vim
+++ b/src/testdir/test_vim9_disassemble.vim
@@ -362,8 +362,7 @@
def WithFunc()
let funky1: func
let funky2: func = function("len")
- let party1: partial
- let party2: partial = funcref("UserFunc")
+ let party2: func = funcref("UserFunc")
enddef
def Test_disassemble_function()
@@ -376,15 +375,12 @@
\ .. '2 PUSHS "len".*'
\ .. '3 BCALL function(argc 1).*'
\ .. '4 STORE $1.*'
- \ .. 'let party1: partial.*'
- \ .. '5 PUSHPARTIAL "\[none]".*'
- \ .. '6 STORE $2.*'
- \ .. 'let party2: partial = funcref("UserFunc").*'
- \ .. '7 PUSHS "UserFunc".*'
- \ .. '8 BCALL funcref(argc 1).*'
- \ .. '9 STORE $3.*'
- \ .. '10 PUSHNR 0.*'
- \ .. '11 RETURN.*'
+ \ .. 'let party2: func = funcref("UserFunc").*'
+ \ .. '\d PUSHS "UserFunc".*'
+ \ .. '\d BCALL funcref(argc 1).*'
+ \ .. '\d STORE $2.*'
+ \ .. '\d PUSHNR 0.*'
+ \ .. '\d RETURN.*'
\, instr)
enddef
@@ -753,10 +749,10 @@
\ ['#{a:1} is #{x:2}', 'COMPAREDICT is'],
\ ['#{a:1} isnot #{x:2}', 'COMPAREDICT isnot'],
\
- \ ['{->33} == {->44}', 'COMPAREPARTIAL =='],
- \ ['{->33} != {->44}', 'COMPAREPARTIAL !='],
- \ ['{->33} is {->44}', 'COMPAREPARTIAL is'],
- \ ['{->33} isnot {->44}', 'COMPAREPARTIAL isnot'],
+ \ ['{->33} == {->44}', 'COMPAREFUNC =='],
+ \ ['{->33} != {->44}', 'COMPAREFUNC !='],
+ \ ['{->33} is {->44}', 'COMPAREFUNC is'],
+ \ ['{->33} isnot {->44}', 'COMPAREFUNC isnot'],
\
\ ['77 == g:xx', 'COMPAREANY =='],
\ ['77 != g:xx', 'COMPAREANY !='],