File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -352,16 +352,6 @@ void TypeChecker::checkReferencedGenericParams(GenericContext *dc) {
352
352
return Action::SkipChildren;
353
353
}
354
354
355
- // Don't walk into generic type alias substitutions. This does
356
- // not constrain `T`:
357
- //
358
- // typealias Foo<T> = Int
359
- // func foo<T>(_: Foo<T>) {}
360
- if (auto *aliasTy = dyn_cast<TypeAliasType>(ty.getPointer ())) {
361
- Type (aliasTy->getSinglyDesugaredType ()).walk (*this );
362
- return Action::SkipChildren;
363
- }
364
-
365
355
return Action::Continue;
366
356
}
367
357
Original file line number Diff line number Diff line change @@ -106,4 +106,4 @@ func unusedParameterPack1<each T: Sequence>(_: repeat (each T).Element) {}
106
106
typealias First < T, U> = T
107
107
108
108
func unusedParameterPack2< each T > ( _: repeat First < Int , each T > ) { }
109
- // expected-error@-1 {{generic parameter 'T' is not used in function signature}}
109
+ // allowed
You can’t perform that action at this time.
0 commit comments