// 故意编译失败:GraphicsContext 没有公开初始化器,只能由 Canvas 提供。 // 复现:swiftc -typecheck Diagnostics/ConstructGraphicsContext.swift import SwiftUI let context = GraphicsContext()