File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
validation-test/compiler_crashers_fixed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -765,7 +765,13 @@ SILLinkage LinkEntity::getLinkage(ForDefinition_t forDefinition) const {
765
765
766
766
case Kind::ProtocolWitnessTableLazyAccessFunction:
767
767
case Kind::ProtocolWitnessTableLazyCacheVariable: {
768
- auto *nominal = getType ().getAnyNominal ();
768
+ auto ty = getType ();
769
+ ValueDecl *nominal = nullptr ;
770
+ if (auto *otat = ty->getAs <OpaqueTypeArchetypeType>()) {
771
+ nominal = otat->getDecl ();
772
+ } else {
773
+ nominal = ty->getAnyNominal ();
774
+ }
769
775
assert (nominal);
770
776
if (getDeclLinkage (nominal) == FormalLinkage::Private ||
771
777
getLinkageAsConformance () == SILLinkage::Private) {
Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-frontend -target %target-cpu-apple-macosx10.15 -swift-version 5 -c %s
2
+ // REQUIRES: objc_interop
3
+ // REQUIRES: OS=macosx
4
+
5
+ import SwiftUI
6
+
7
+ struct DropDestinationCoordinatorView : NSViewRepresentable {
8
+ func makeNSView( context: Context ) -> some NSView {
9
+ return NSView ( )
10
+ }
11
+
12
+ func updateNSView( _ nsView: NSViewType , context: Context ) {
13
+ print ( " for view: \( nsView) " )
14
+ }
15
+ }
16
+
You can’t perform that action at this time.
0 commit comments