// 故意编译失败:defaultSize 的宽高是 CGFloat,不是字符串。 // 复现:swiftc -typecheck Diagnostics/DefaultSizeString.swift import SwiftUI struct A: App { var body: some Scene { WindowGroup { Text("x") } .defaultSize(width: "800", height: 600) } }