Skip to content

Commit f10992f

Browse files
committed
[test] Add curried IUO test case
1 parent 6871974 commit f10992f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/Constraints/iuo.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,12 @@ let _: Int = r
229229
// SR-11998 / rdar://problem/58455441
230230
class C<T> {}
231231
var sub: C! = C<Int>()
232+
233+
// FIXME: We probably shouldn't support this, we don't support other
234+
// 'direct call' features such as default arguments for curried calls.
235+
struct CurriedIUO {
236+
func silly() -> Int! { nil }
237+
func testSilly() {
238+
let _: Int = CurriedIUO.silly(self)()
239+
}
240+
}

0 commit comments

Comments
 (0)