Skip to content

Commit 02301d6

Browse files
authored
Merge pull request #72529 from hamishknight/issue-57916
[test] Add test for issue 57916
2 parents f809d72 + b82271e commit 02301d6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/IDE/complete_init.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,15 @@ var CAliasInstance = CAlias(#^ALIAS_CONSTRUCTOR_0^#
140140
// rdar://18586415
141141
// ALIAS_CONSTRUCTOR_0: Decl[Constructor]/CurrNominal/Flair[ArgLabels]: ['(']{#x: A#}[')'][#CAlias#];
142142
// ALIAS_CONSTRUCTOR_0: Decl[Constructor]/CurrNominal/Flair[ArgLabels]: ['(']{#y: A#}[')'][#CAlias#];
143+
144+
// https://github.com/apple/swift/issues/57916
145+
struct Issue57916 {
146+
var a: Int
147+
var b: Int {
148+
get { return a }
149+
}
150+
}
151+
func test57916() {
152+
Issue57916(#^ISSUE_57916^#
153+
// ISSUE_57916: Decl[Constructor]/CurrNominal/Flair[ArgLabels]: ['(']{#a: Int#}[')'][#Issue57916#]; name=a:
154+
}

0 commit comments

Comments
 (0)