about summary refs log tree commit diff stats
path: root/055shape_shifting_container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-06-24 08:36:16 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-06-24 08:36:16 -0700
commit985e0ffeef1ff72eef68966ec5fb8f5468e5ab41 (patch)
tree7663f6933f8a39e8aeb6aa2508b94857d3b93f2e /055shape_shifting_container.cc
parent5f94a25e85a71be0651663c11cfa19038b725fea (diff)
downloadmu-985e0ffeef1ff72eef68966ec5fb8f5468e5ab41.tar.gz
3948
Diffstat (limited to '055shape_shifting_container.cc')
-rw-r--r--055shape_shifting_container.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/055shape_shifting_container.cc b/055shape_shifting_container.cc
index a9225960..8a7d75e1 100644
--- a/055shape_shifting_container.cc
+++ b/055shape_shifting_container.cc
@@ -670,6 +670,17 @@ void test_container_address_offsets_in_nested_shape_shifting_container() {
   CHECK_EQ((++offset_info.begin())->payload_type->name, "number");
 }
 
+:(scenario typos_in_container_definitions)
+% Hide_errors = true;
+container foo:_t [
+  x:adress:_t  # typo
+]
+def main [
+  local-scope
+  x:address:foo:num <- new {(foo num): type}
+]
+# no crash
+
 //:: 'merge' on shape-shifting containers
 
 :(scenario merge_check_shape_shifting_container_containing_exclusive_container)