From f0ec2fb9e34754cbaa3ee8dd7457dd3861bb2171 Mon Sep 17 00:00:00 2001 From: Pavel Yaskevich Date: Wed, 17 Dec 2025 13:17:39 -0800 Subject: [PATCH] [lldb] Adjust expected type of `value` variable in `TestSwiftGenericEnums` test-case `let _: String? = log("")` where `log` is `(_: T) -> T` should should have `T` bound to `String` and result injected into an optional instead of injecting the literal argument. This is paired with https://github.com/swiftlang/swift/pull/86096 which changes the inference behavior here. --- .../lang/swift/variables/generic_enums/TestSwiftGenericEnums.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/test/API/lang/swift/variables/generic_enums/TestSwiftGenericEnums.py b/lldb/test/API/lang/swift/variables/generic_enums/TestSwiftGenericEnums.py index eb189c6da806f..0726d57a65239 100644 --- a/lldb/test/API/lang/swift/variables/generic_enums/TestSwiftGenericEnums.py +++ b/lldb/test/API/lang/swift/variables/generic_enums/TestSwiftGenericEnums.py @@ -58,5 +58,5 @@ def test_swift_generic_enum_types(self): value, use_dynamic=True, summary='"Now with Content"', - typename='Swift.Optional') + typename='Swift.String')