File tree Expand file tree Collapse file tree 2 files changed +8
-18
lines changed
test/SourceKit/DocumentStructure/Inputs Expand file tree Collapse file tree 2 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -2866,15 +2866,6 @@ class Verifier : public ASTWalker {
2866
2866
2867
2867
void verifyParsed (ConstructorDecl *CD) {
2868
2868
PrettyStackTraceDecl debugStack (" verifying ConstructorDecl" , CD);
2869
-
2870
- auto *DC = CD->getDeclContext ();
2871
- if (!isa<NominalTypeDecl>(DC) && !isa<ExtensionDecl>(DC) &&
2872
- !CD->isInvalid ()) {
2873
- Out << " ConstructorDecls outside nominal types and extensions "
2874
- " should be marked invalid" ;
2875
- abort ();
2876
- }
2877
-
2878
2869
verifyParsedBase (CD);
2879
2870
}
2880
2871
@@ -2955,15 +2946,6 @@ class Verifier : public ASTWalker {
2955
2946
Out << " DestructorDecl cannot be generic" ;
2956
2947
abort ();
2957
2948
}
2958
-
2959
- auto *DC = DD->getDeclContext ();
2960
- if (!isa<NominalTypeDecl>(DC) && !isa<ExtensionDecl>(DC) &&
2961
- !DD->isInvalid ()) {
2962
- Out << " DestructorDecls outside nominal types and extensions "
2963
- " should be marked invalid" ;
2964
- abort ();
2965
- }
2966
-
2967
2949
verifyParsedBase (DD);
2968
2950
}
2969
2951
Original file line number Diff line number Diff line change @@ -139,3 +139,11 @@ class OneMore {
139
139
class Chain < A> {
140
140
func + ( lhs: Chain < A > , rhs: Chain < A > ) -> Chain < A > { fatalError ( ) }
141
141
}
142
+
143
+ public init ( ) {
144
+ fatalError ( )
145
+ }
146
+
147
+ deinit {
148
+ fatalError ( )
149
+ }
You can’t perform that action at this time.
0 commit comments