Enable dot operations on constant variables.

This commit is contained in:
Stephen Chung
2020-03-20 19:27:02 +08:00
parent 16ea8f416e
commit ed996e71d6
7 changed files with 385 additions and 238 deletions

View File

@@ -91,7 +91,7 @@ fn test_big_get_set() -> Result<(), EvalAltResult> {
);
assert_eq!(
engine.eval::<String>("let a = new_tp(); a.type_of()")?,
engine.eval::<String>("let a = new_tp(); type_of(a)")?,
"TestParent"
);