What happens if the output of a 74LS05 IC is connected to the input of a 74LS04 IC?
You'll get the expected behavior, but with less noise immunity for the "going high" transition of that shared node. And probably more random jitter on that same edge.