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") {
1552
1552
//===----------------------------------------------------------------------===//
1553
1553
1554
1554
protocol SomeNativeProto { }
1555
+ protocol SomeOtherNativeProto { }
1555
1556
extension Int : SomeNativeProto { }
1556
1557
1557
1558
class SomeClass { }
@@ -1586,6 +1587,14 @@ mirrors.test("MetatypeMirror") {
1586
1587
output = " "
1587
1588
dump ( nativeProtocolConcreteMetatype, to: & output)
1588
1589
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)
1589
1598
}
1590
1599
}
1591
1600
You can’t perform that action at this time.
0 commit comments