mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Otherwise we can get in trouble when a local type is named, say, 'Sequence'. Also contains test updates and a fix for Harlan's previous commit, which actually affects all typealiases, not just those in the Builtin module.
13 lines
549 B
Plaintext
13 lines
549 B
Plaintext
// swift-interface-format-version: 1.0
|
|
// swift-module-flags: -parse-stdlib
|
|
|
|
// Note that the "-parse-stdlib" is picked up from the module flags. It should
|
|
// not be written in any of the invocations below.
|
|
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -build-module-from-parseable-interface -o %t/ParseStdlib.swiftmodule %s
|
|
// RUN: %target-swift-ide-test -print-module -module-to-print ParseStdlib -I %t -source-filename x -print-interface | %FileCheck %s
|
|
|
|
// CHECK: func test(_: Builtin.Int42)
|
|
public func test(_: Builtin.Int42) {}
|