Hi,
Why the program can not return different types of data from the conditional operator?

-----
import std.stdio;

auto foo() {

        if (true) {
                return 0;
        } else
                return "true";
}

void main() {

        writeln(foo);
}

Reply via email to