Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Supply explicit type on forEach block to try preventing compiler crash #1682

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extension GetFooInput {
config.interceptorProviders.forEach { provider in
builder.interceptors.add(provider.create())
}
config.httpInterceptorProviders.forEach { provider in
config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in
let i: any ClientRuntime.HttpInterceptor<GetFooInput, GetFooOutput> = provider.create()
builder.interceptors.add(i)
}
Expand Down Expand Up @@ -111,7 +111,7 @@ extension PostFooInput {
config.interceptorProviders.forEach { provider in
builder.interceptors.add(provider.create())
}
config.httpInterceptorProviders.forEach { provider in
config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in
let i: any ClientRuntime.HttpInterceptor<PostFooInput, PostFooOutput> = provider.create()
builder.interceptors.add(i)
}
Expand Down Expand Up @@ -182,7 +182,7 @@ extension PutFooInput {
config.interceptorProviders.forEach { provider in
builder.interceptors.add(provider.create())
}
config.httpInterceptorProviders.forEach { provider in
config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in
let i: any ClientRuntime.HttpInterceptor<PutFooInput, PutFooOutput> = provider.create()
builder.interceptors.add(i)
}
Expand Down Expand Up @@ -253,7 +253,7 @@ extension PutObjectInput {
config.interceptorProviders.forEach { provider in
builder.interceptors.add(provider.create())
}
config.httpInterceptorProviders.forEach { provider in
config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in
let i: any ClientRuntime.HttpInterceptor<PutObjectInput, PutObjectOutput> = provider.create()
builder.interceptors.add(i)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AWSQueryOperationStackTest {
config.interceptorProviders.forEach { provider in
builder.interceptors.add(provider.create())
}
config.httpInterceptorProviders.forEach { provider in
config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in
let i: any ClientRuntime.HttpInterceptor<NoInputAndOutputInput, NoInputAndOutputOutput> = provider.create()
builder.interceptors.add(i)
}
Expand Down
Loading