Skip to content

Commit 7cb6cd6

Browse files
committed
Sema: Add a test case for a typo correction crash that's already been fixed
I think this is one of the cases from <rdar://problem/36434823>; it was fixed by commit 09cc860.
1 parent 387ef8f commit 7cb6cd6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/Sema/typo_correction.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,15 @@ func test_overloaded() {
144144
overloadd(0)
145145
// expected-error@-1 {{use of unresolved identifier 'overloadd'; did you mean 'overloaded'?}}{{3-12=overloaded}}
146146
}
147+
148+
// This is one of the backtraces from rdar://36434823 but got fixed along
149+
// the way.
150+
class CircularValidationWithTypo {
151+
var cdcdcdcd = ababab { // expected-error {{use of unresolved identifier 'ababab'}}
152+
didSet { }
153+
}
154+
155+
var abababab = cdcdcdc { // expected-error {{use of unresolved identifier 'cdcdcdc'}}
156+
didSet { }
157+
}
158+
}

0 commit comments

Comments
 (0)