Files
swift-mirror/test/SILGen/partial_apply_generic.swift
Joe Groff 63463f54ac SIL: Mangle the static-ness of declarations.
This lets us disambiguate the symbols for static and instance properties, and enables us to eventually leave the useless "self" type mangling out of method symbols. Fixes rdar://19012022 and dupes thereof, including crasher #1341.

Swift SVN r25111
2015-02-10 02:37:35 +00:00

16 lines
467 B
Swift

// RUN: %target-swift-frontend -emit-silgen %s | FileCheck %s
protocol Foo {
static func foo()
}
func getFoo<T: Foo>(t: T.Type) -> () -> () {
return t.foo
}
// CHECK-LABEL: sil hidden @_TF21partial_apply_generic6getFooUS_3Foo__FMQ_FT_T_
// CHECK: function_ref @_TZFP21partial_apply_generic3Foo3fooUS0___FMQPS0_FT_T_
// CHECK-LABEL: sil shared @_TZFP21partial_apply_generic3Foo3fooUS0___FMQPS0_FT_T_
// CHECK: witness_method $Self, #Foo.foo!1