Files
swift-mirror/test/Serialization/Inputs/autolinking_module_inferred.swift
Jordan Rose 0ba6c495ba Add @_implementationOnly
This is an attribute that gets put on an import in library FooKit to
keep it from being a requirement to import FooKit. It's not checked at
all, meaning that in this form it is up to the author of FooKit to
make sure nothing in its API or ABI depends on the implementation-only
dependency. There's also no debugging support here (debugging FooKit
/should/ import the implementation-only dependency if it's present).

The goal is to get to a point where it /can/ be checked, i.e. FooKit
developers are prevented from writing code that would rely on FooKit's
implementation-only dependency being present when compiling clients of
FooKit. But right now it's not.

rdar://problem/48985979
2019-03-28 15:57:53 -07:00

11 lines
257 B
Swift

@_exported import autolinking_public
import autolinking_other
import autolinking_indirect
import autolinking_private
@_implementationOnly import autolinking_implementation_only
public func bfunc(x: Int = afunc(), y: Int = afunc2()) {
cfunc()
dfunc()
}