Mysterious Default Value for un-assigned variable

I can also reproduce this if none of these conditions are true. You can clone this project and change this function to:

Button("Update Name") {
    let id = toastManager.showToast() {
        OverlayTextInputToastView(toastID: id, userName: $userName)
    }
}

The module has not a main.swift file or the other condition.