Skip to content

Commit 8a89837

Browse files
authored
Merge pull request llvm#11186 from augusto2112/fix-TestArchetypeInExpression-21.x
[lldb] Fix TestArchetypeInExpression on stable/21.x
2 parents 09bef0c + 58653d2 commit 8a89837

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/test/API/lang/swift/archetype_in_expression/TestArchetypeInExpression.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ def test(self):
2121
self.expect("expr U.self", substrs=["[Int].Type"])
2222
# Assert that frame variable doesn't work
2323
self.expect("v First.self",
24-
substrs=["no variable or instance variable named 'First' found in this frame"],
24+
substrs=["use of undeclared identifier 'First'"],
2525
error=True)
2626
self.expect("v T.self",
27-
substrs=["no variable or instance variable named 'T' found in this frame"],
27+
substrs=["use of undeclared identifier 'T'"],
2828
error=True)
2929

3030
# Check that referring to a shadowed archetype works correctly.
3131
lldbutil.continue_to_breakpoint(process, breakpoint)
3232
self.expect("expr T.self", substrs=["String.Type"])
3333
# Assert that frame variable doesn't work
3434
self.expect("v T.self",
35-
substrs=["no variable or instance variable named 'T' found in this frame"],
35+
substrs=["use of undeclared identifier 'T'"],
3636
error=True)
3737

3838
# Check that you refer to archetypes in nested generic functions.

0 commit comments

Comments
 (0)