Xcode swift Error

Xcode 26.6(17F113)
在看Swift 6.4 测试版官方技术文档
Functions 的 Function Types as Return Types
小节的时候,按文档抄的代码,Xcode报错,但在swift repl 中执行是正常的。 ? : 运算符处明明正常,为啥报错。附代码截图:
错误提示信息:

Failed to produce diagnostic for expression; please submit a bug report (Contributing | Swift.org)

You have stumbled upon a type checker bug. :slight_smile:

Could you help pass this issue on to the official team?