patch 8.2.0730: Vim9: Assignment to dict member does not work
Problem: Vim9: Assignment to dict member does not work.
Solution: Parse dict assignment. Implement getting dict member.
diff --git a/src/vim9.h b/src/vim9.h
index 709716e..27914af 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -48,6 +48,8 @@
// ISN_STOREOTHER, // pop into other script variable isn_arg.other.
ISN_STORENR, // store number into local variable isn_arg.storenr.stnr_idx
+ ISN_STORELIST, // store into list, value/index/varable on stack
+ ISN_STOREDICT, // store into dictionary, value/index/variable on stack
ISN_UNLET, // unlet variable isn_arg.unlet.ul_name
ISN_UNLETENV, // unlet environment variable isn_arg.unlet.ul_name
@@ -110,7 +112,8 @@
// expression operations
ISN_CONCAT,
ISN_INDEX, // [expr] list index
- ISN_MEMBER, // dict.member using isn_arg.string
+ ISN_MEMBER, // dict[member]
+ ISN_STRINGMEMBER, // dict.member using isn_arg.string
ISN_2BOOL, // convert value to bool, invert if isn_arg.number != 0
ISN_2STRING, // convert value to string at isn_arg.number on stack
ISN_NEGATENR, // apply "-" to number