@@ -481,19 +481,31 @@ public struct Mirror {
481481 children: C ,
482482 displayStyle: DisplayStyle ? = nil ,
483483 ancestorRepresentation: AncestorRepresentation = . generated
484- ) where C. Element == Child { Builtin . unreachable ( ) }
484+ ) where C. Element == Child {
485+ // Can't use Builtin.unreachable() due to
486+ // https://bugs.swift.org/browse/SR-15300
487+ self . init ( reflecting: subject)
488+ }
485489 public init < Subject, C: Collection > (
486490 _ subject: Subject ,
487491 unlabeledChildren: C ,
488492 displayStyle: DisplayStyle ? = nil ,
489493 ancestorRepresentation: AncestorRepresentation = . generated
490- ) { Builtin . unreachable ( ) }
494+ ) {
495+ // Can't use Builtin.unreachable() due to
496+ // https://bugs.swift.org/browse/SR-15300
497+ self . init ( reflecting: subject)
498+ }
491499 public init < Subject> (
492500 _ subject: Subject ,
493501 children: KeyValuePairs < String , Any > ,
494502 displayStyle: DisplayStyle ? = nil ,
495503 ancestorRepresentation: AncestorRepresentation = . generated
496- ) { Builtin . unreachable ( ) }
504+ ) {
505+ // Can't use Builtin.unreachable() due to
506+ // https://bugs.swift.org/browse/SR-15300
507+ self . init ( reflecting: subject)
508+ }
497509 public let subjectType : Any . Type
498510 public let children : Children
499511 public let displayStyle : DisplayStyle ?
0 commit comments