// RUN: %target-swift-emit-sil %s -enable-experimental-feature Embedded -wmo | %FileCheck %s // REQUIRES: swift_in_compiler // REQUIRES: OS=macosx || OS=linux-gnu // CHECK: sil @$s4main1XC3fooxyFSi_Tg5 : $@convention(method) (@guaranteed X) -> Int { // CHECK-LABEL: sil_vtable $X // CHECK: #X.foo: (X) -> () -> T : @$s4main1XC3fooxyFSi_Tg5 // CHECK: } open class X { var t: T init(t: T) { self.t = t } open func foo() -> T { t } } func testit() -> Int { let x = X(t: 27) return x.foo() }