语言地基
类型系统与抽象
并发、内存与性能
互操作与工程
SwiftUI 基础
SwiftUI 进阶
macOS 工程
iOS
综合
附录
52-app-performance-instruments
52-app-performance-instruments/Diagnostics/DurationSeconds.swift
swift · 0.2 KB
// 故意编译失败:Duration 没有实例属性 seconds。 // 复现:swiftc -typecheck Diagnostics/DurationSeconds.swift import Foundation let duration = Duration.seconds(1) let seconds = duration.seconds
该文件由构建期采集,未做任何改写;源码页不进入搜索引擎索引。