From c1123445f7061a8922f792d22b12daa4cd2874db Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 15 Nov 2015 17:33:52 -0800 Subject: 2448 --- 021check_instruction.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/021check_instruction.cc b/021check_instruction.cc index 15d14afc..57757446 100644 --- a/021check_instruction.cc +++ b/021check_instruction.cc @@ -73,6 +73,8 @@ recipe main [ +error: main: can't copy 34 to 1:address:number; types don't match :(code) +// copy arguments because later layers will want to make changes to them +// without perturbing the caller bool types_match(reagent lhs, reagent rhs) { // '_' never raises type error if (is_dummy(lhs)) return true; -- cgit 1.4.1-2-gfad0