1 /* 2 TEST_OUTPUT: 3 --- 4 fail_compilation/fail216.d(16): Error: expression foo() is void and has no value 5 fail_compilation/fail216.d(14): Error: function fail216.bar has no return statement, but is expected to return a value of type int 6 fail_compilation/fail216.d(19): called from here: bar() 7 --- 8 */ 9 10 // Issue 1744 - CTFE: crash on assigning void-returning function to variable 11 foo()12void foo() {} 13 bar()14int bar() 15 { 16 int x = foo(); 17 } 18 19 const y = bar(); 20