blob: 448d20a196347bdf2b3de9de8686a8f3c1432d10 [file] [log] [blame]
// RUN: %target-swift-frontend -typecheck -verify %s
class C {}
class D {}
func f1(f : (inout Int) -> ()) {}
func f2(f : (inout Any) -> ()) {
// TODO: Error here is still pretty bad...
f1 { f(&$0) } // expected-error{{conversion from 'Int' to 'Any'}}
}