mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
7f0f8830cd
This has three principal advantages: - It gives some additional type-safety when working with known accessors. - It makes it significantly easier to test whether a declaration is an accessor and encourages the use of a common idiom. - It saves a small amount of memory in both FuncDecl and its serialized form.
8 lines
484 B
Swift
8 lines
484 B
Swift
// RUN: %empty-directory(%t.mod)
|
|
// RUN: %empty-directory(%t.sdk)
|
|
// RUN: %empty-directory(%t.module-cache)
|
|
// RUN: %swift -emit-module -o %t.mod/cake.swiftmodule %S/Inputs/cake.swift -parse-as-library
|
|
// RUN: %api-digester -dump-sdk -module cake -o %t.dump.json -module-cache-path %t.module-cache -sdk %t.sdk -swift-version 3 -I %t.mod
|
|
// RUN: diff -u %S/Outputs/cake.json %t.dump.json
|
|
// RUN: %api-digester -diagnose-sdk --input-paths %t.dump.json -input-paths %S/Outputs/cake.json
|