Files
swift-mirror/test/Serialization/Inputs/vtable-function-deserialization-input.swift
Michael Gottesman 044b85be7b [deserialization] When deserializing vtables, do not deserialize the functions they reference.
This fixes a bug where we were deserializing a function with a call to a shared
linkage function. The shared linkage function was never deserialized causing an
assertion to fire due to shared linkage functions always needing a definition.

I am planning on implementing lazy deserialization of vtable functions.

Swift SVN r14581
2014-03-03 05:05:20 +00:00

27 lines
236 B
Swift

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