Files
swift-mirror/test/Serialization/Inputs/vtable-function-deserialization-input.swift
Jordan Rose 5557c3972b Update tests for accessibility.
In most cases this means adding @public to things that get serialized;
in a few cases it means using a modern public stdlib API instead of
a legacy thing I was trying to keep @internal.

Swift SVN r19350
2014-06-30 18:50:40 +00:00

27 lines
320 B
Swift

@public struct Y {}
@public struct X<U> {
@public var a : U
@public init(_a : U) {
a = _a
}
@public func doneSomething() {}
}
@public class A {
@public var y : Y
@public var x : X<Y>
@public init() {
y = Y()
x = X<Y>(_a: y)
}
@public func doSomething() {
x.doneSomething()
}
}