File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
validation-test/compiler_crashers_2_fixed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -5011,6 +5011,10 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
5011
5011
return false ;
5012
5012
if (func->isGeneric () != parentFunc->isGeneric ())
5013
5013
return false ;
5014
+ } else if (auto ctor = dyn_cast<ConstructorDecl>(decl)) {
5015
+ auto parentCtor = cast<ConstructorDecl>(parentDecl);
5016
+ if (ctor->isGeneric () != parentCtor->isGeneric ())
5017
+ return false ;
5014
5018
} else if (auto var = dyn_cast<VarDecl>(decl)) {
5015
5019
auto parentVar = cast<VarDecl>(parentDecl);
5016
5020
if (var->isStatic () != parentVar->isStatic ())
Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-frontend %s -emit-ir
2
+
3
+ class Base {
4
+ init < S: Sequence > ( _ s: S ) where S. Iterator. Element == UInt8 { }
5
+ }
6
+
7
+ class Sub : Base {
8
+ init ( _ b: [ UInt8 ] ) { super. init ( b) }
9
+ }
You can’t perform that action at this time.
0 commit comments