blob: 2c8063a243011b95b460963689a4bf62b26ae507 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/diag20059.d(15): Error: expected return type of `string`, not `string[]`:
fail_compilation/diag20059.d(13): Return type of `string` inferred here.
---
*/
auto fail()
{
string ret;
if (true)
return ret;
else
return [ret];
}