Fixing 4.x grammar to be backward compatible.
Added 3.x unit tests back to show this.
This commit is contained in:
@@ -28,7 +28,7 @@ def my_fun()
|
||||
assert_equal(true, my_fun.has_parse_tree());
|
||||
assert_equal(false, `+`.has_parse_tree());
|
||||
|
||||
assert_throws("Function does not have a parse tree", []() { `+`.get_parse_tree(); } );
|
||||
assert_throws("Function does not have a parse tree", fun() { `+`.get_parse_tree(); } );
|
||||
|
||||
auto& parsetree = my_fun.get_parse_tree();
|
||||
|
||||
|
Reference in New Issue
Block a user