mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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
16 lines
467 B
Swift
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
|