Reusing a chunk with `ref.label` seems to not be working when the chunk body is empty. It does work with a blank line for the body or when the body contains a `#|` option. This sample document illustrates the issue:

````
---
execute:
  echo: true
---

The original chunk:

```{r}
#| label: foo
1 + 2
```

Using `ref.label` does not work with an empty body:

```{r, ref.label = "foo"}
```

Using `ref.label` does work with a blank line body:

```{r, ref.label = "foo"}

```

Using `<<...>>` noweb notation does work:

```{r}
<<foo>>
```
````
2022-05-31T22:18:01Z
ltierney
closed
`ref.label` seems not to be handled quite right 
https://github.com/quarto-dev/quarto-cli/issues/1034