mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
27 lines
236 B
Swift
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()
|
|
}
|
|
}
|