Skip to content

Commit b09f9e5

Browse files
committed
Tests: Add missing explicit type annotations in lazy_typecheck_client.swift.
1 parent 98e65d0 commit b09f9e5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/Inputs/lazy_typecheck_client.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ struct ConformsToMainActorProto: MainActorProtocol {
1212
}
1313

1414
func testGlobalFunctions() {
15-
_ = publicFunc()
16-
_ = publicFuncWithDefaultArg()
15+
let _: Int = publicFunc()
16+
let _: Int = publicFuncWithDefaultArg()
1717
#if TEST_PACKAGE
18-
_ = packageFunc()
18+
let _: Int = packageFunc()
1919
#endif
2020
constrainedGenericPublicFunction(ConformsToPublicProto())
21-
_ = publicSpecializedFunc(4)
22-
_ = publicSpecializedFunc(ConformsToPublicProto())
21+
let _: Int = publicSpecializedFunc(4)
22+
let _: ConformsToPublicProto = publicSpecializedFunc(ConformsToPublicProto())
2323
if #available(SwiftStdlib 5.1, *) {
24-
_ = publicFuncWithOpaqueReturnType()
25-
_ = publicAEICFuncWithOpaqueReturnType()
24+
let _: any PublicProto = publicFuncWithOpaqueReturnType()
25+
let _: Any = publicAEICFuncWithOpaqueReturnType()
2626
}
2727
}
2828

0 commit comments

Comments
 (0)