diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-11-17 11:25:00 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-11-17 11:25:00 -0800 |
commit | c6354606d412b7719ab7078b59c015d580520bde (patch) | |
tree | 850da3f23f90b7680fe3dca4f1017c9dc9615c3d /059shape_shifting_recipe.cc | |
parent | 5729eb517bd6bdbfb08ec95d04d3e3baf22e81b8 (diff) | |
download | mu-c6354606d412b7719ab7078b59c015d580520bde.tar.gz |
2456
Diffstat (limited to '059shape_shifting_recipe.cc')
-rw-r--r-- | 059shape_shifting_recipe.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/059shape_shifting_recipe.cc b/059shape_shifting_recipe.cc index 7f224d15..b3fec956 100644 --- a/059shape_shifting_recipe.cc +++ b/059shape_shifting_recipe.cc @@ -673,3 +673,22 @@ container d1:_elem [ +error: foo: unknown type for e (check the name for typos) +error: specializing foo: missing type for e # and it doesn't crash + +:(scenario missing_type_in_shape_shifting_recipe_2) +% Hide_errors = true; +recipe main [ + a:d1:number <- merge 3 + foo a +] +recipe foo a:d1:_elem -> b:number [ + local-scope + load-ingredients + get e, x:offset # unknown variable in a 'get', which does some extra checking + reply 34 +] +container d1:_elem [ + x:_elem +] ++error: foo: unknown type for e (check the name for typos) ++error: specializing foo: missing type for e +# and it doesn't crash |