// RUN: %empty-directory(%t) // RUN: %target-build-swift -emit-module -o %t/Test.swiftmodule -emit-module-interface-path %t/Test.swiftinterface -module-name Test -enable-library-evolution -swift-version 5 %s // RUN: %FileCheck %s < %t/Test.swiftinterface public protocol P { } public class Foo : P { public struct Nested {} } extension P { public static func blah1(_: Self) where Self == Foo {} public static func blah2(_: Self.Nested) where Self == Foo {} public static func blah3(_: Self) where Self : Foo {} public static func blah4(_: Self.Nested) where Self : Foo {} } // CHECK-LABEL: extension Test.P { // CHECK-NEXT: public static func blah1(_: Self) where Self == Test.Foo // CHECK-NEXT: public static func blah2(_: Test.Foo.Nested) where Self == Test.Foo // CHECK-NEXT: public static func blah3(_: Self) where Self : Test.Foo // CHECK-NEXT: public static func blah4(_: Test.Foo.Nested) where Self : Test.Foo // CHECK-NEXT: }