Why can't we declare and assign a logic type in one step?

In reply to Shashank V M:

I encounter no issues using ‘logic y_and = a & b;’.

You will need to post a complete example which demonstrates your issue.