This commit is contained in:
Kartik K. Agaram 2017-06-24 09:23:42 -07:00
parent 985e0ffeef
commit c4cff3b355
1 changed files with 9 additions and 0 deletions

View File

@ -617,6 +617,7 @@ void test_container_sizes_recursive_shape_shifting_container() {
:(before "End compute_container_address_offsets Non-atom Special-cases")
const type_tree* root = get_base_type(type);
if (!contains_key(Type, root->value)) return; // error raised elsewhere
type_info& info = get(Type, root->value);
if (info.kind == CONTAINER) {
compute_container_address_offsets(info, type, location_for_error_messages);
@ -681,6 +682,14 @@ def main [
]
# no crash
:(scenario typos_in_recipes)
% Hide_errors = true;
def foo [
local-scope
x:adress:array:number <- copy 0 # typo
]
# shouldn't crash
//:: 'merge' on shape-shifting containers
:(scenario merge_check_shape_shifting_container_containing_exclusive_container)