File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1552,6 +1552,7 @@ mirrors.test("CustomMirrorIsInherited") {
15521552//===----------------------------------------------------------------------===//
15531553
15541554protocol SomeNativeProto { }
1555+ protocol SomeOtherNativeProto { }
15551556extension Int : SomeNativeProto { }
15561557
15571558class SomeClass { }
@@ -1586,6 +1587,14 @@ mirrors.test("MetatypeMirror") {
15861587 output = " "
15871588 dump ( nativeProtocolConcreteMetatype, to: & output)
15881589 expectEqual ( expectedNativeProtocolConcrete, output)
1590+
1591+ let nativeProtocolCompositionMetatype =
1592+ ( SomeNativeProto & SomeOtherNativeProto) . self
1593+ output = " "
1594+ dump ( nativeProtocolCompositionMetatype, to: & output)
1595+ expectEqual (
1596+ " - Mirror.SomeNativeProto & Mirror.SomeOtherNativeProto #0 \n " ,
1597+ output)
15891598 }
15901599}
15911600
You can’t perform that action at this time.
0 commit comments