@@ -267,6 +267,7 @@ pub mod f64 {
267267 } ,
268268 _ => unreachable!( "the type checker should never invoke this function if the argument count does not match" )
269269 } ,
270+ return_type: StaticType :: Bool ,
270271 } )
271272 . build( )
272273 . expect( "must succeed" )
@@ -291,6 +292,7 @@ pub mod f64 {
291292 [ left, right] => Ok ( Value :: Bool ( left == right) ) ,
292293 _ => unreachable ! ( "the type checker should never invoke this function if the argument count does not match" )
293294 } ,
295+ return_type : StaticType :: Bool ,
294296 } )
295297 . build ( )
296298 . expect ( "must succeed" )
@@ -308,6 +310,7 @@ pub mod f64 {
308310 [ left, right] => Ok ( Value :: Bool ( left != right) ) ,
309311 _ => unreachable ! ( "the type checker should never invoke this function if the argument count does not match" )
310312 } ,
313+ return_type : StaticType :: Bool ,
311314 } )
312315 . build ( )
313316 . expect ( "must succeed" )
@@ -330,6 +333,7 @@ pub mod f64 {
330333 } ,
331334 _ => unreachable ! ( "the type checker should never invoke this function if the argument count does not match" )
332335 } ,
336+ return_type : StaticType :: Int ,
333337 } )
334338 . build ( )
335339 . expect ( "must succeed" )
@@ -352,6 +356,7 @@ pub mod f64 {
352356 } ,
353357 _ => unreachable ! ( "the type checker should never invoke this function if the argument count does not match" )
354358 } ,
359+ return_type : StaticType :: Int ,
355360 } )
356361 . build ( )
357362 . expect ( "must succeed" )
@@ -371,6 +376,7 @@ pub mod f64 {
371376 [ Value :: Bool ( left) , Value :: Bool ( right) ] => Ok ( Value :: Bool ( $operation( * left, * right) ) ) ,
372377 _ => unreachable!( "the type checker should never invoke this function if the argument count does not match" )
373378 } ,
379+ return_type: StaticType :: Bool ,
374380 } )
375381 . build( )
376382 . expect( "must succeed" )
@@ -388,6 +394,7 @@ pub mod f64 {
388394 [ Value :: Number ( Number :: Int ( left) ) , Value :: Number ( Number :: Int ( right) ) ] => Ok ( Value :: Number ( Number :: Int ( $operation( left. clone( ) , right. clone( ) ) ) ) ) ,
389395 _ => unreachable!( "the type checker should never invoke this function if the argument count does not match" )
390396 } ,
397+ return_type: StaticType :: Int ,
391398 } )
392399 . build( )
393400 . expect( "must succeed" ) ,
@@ -416,6 +423,7 @@ pub mod f64 {
416423 [ Value :: Bool ( b) ] => Ok ( Value :: Bool ( b. not ( ) ) ) ,
417424 _ => unreachable ! ( "the type checker should never invoke this function if the argument count does not match" ) ,
418425 } ,
426+ return_type : StaticType :: Bool ,
419427 } )
420428 . name ( ident. to_string ( ) )
421429 . build ( )
@@ -437,6 +445,7 @@ pub mod f64 {
437445 . map ( |x| Value :: Number ( Number :: Int ( x) ) ) ,
438446 _ => unreachable ! ( "the type checker should never invoke this function if the argument count does not match" )
439447 } ,
448+ return_type : StaticType :: Int ,
440449 } )
441450 . build ( )
442451 . expect ( "must succeed" )
@@ -456,6 +465,7 @@ pub mod f64 {
456465 . map ( |x| Value :: Number ( Number :: Int ( x) ) ) ,
457466 _ => unreachable ! ( "the type checker should never invoke this function if the argument count does not match" )
458467 } ,
468+ return_type : StaticType :: Int ,
459469 } )
460470 . build ( )
461471 . expect ( "must succeed" )
0 commit comments