Skip to content

Commit 384c373

Browse files
[tests] Add regression test for SR-12955
1 parent addb432 commit 384c373

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/expr/closure/inference.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,8 @@ let cc = SR8563 { (_: (Int)) in }
7373

7474
cc((1)) // Ok
7575
cc(1) // Ok
76+
77+
// SR-12955
78+
func SR12955() {
79+
let f: @convention(c) (T) -> Void // expected-error {{cannot find type 'T' in scope}}
80+
}

0 commit comments

Comments
 (0)