Fix bug in chained dot/index expression.

This commit is contained in:
Stephen Chung
2020-05-31 14:27:16 +08:00
parent 76d792011f
commit d7d49a5196
2 changed files with 6 additions and 2 deletions

View File

@@ -21,6 +21,10 @@ fn test_map_indexing() -> Result<(), Box<EvalAltResult>> {
)?,
'o'
);
assert_eq!(
engine.eval::<String>(r#"let a = [#{s:"hello"}]; a[0].s[2] = 'X'; a[0].s"#)?,
"heXlo"
);
}
assert_eq!(