Why is `ref` here? Will it query the return type?