func foo(closure: Void -> Int) {}
extension Dictionary {
func bar() {
var x = 0
foo { x }
}
}
swift: /home/buildslave/jenkins/workspace/oss-swift-linux-packages-ubuntu_14_04/swift/lib/SILPasses/IPO/CapturePromotion.cpp:858: swift::SILFunction *constructClonedFunction(swift::PartialApplyInst *, swift::FunctionRefInst *, IndicesSet &): Assertion `!genericSig && "Function type has Unexpected generic signature!"' failed.
0 swift 0x0000000002f15e78 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1 swift 0x0000000002f14646 llvm::sys::RunSignalHandlers() + 54
2 swift 0x0000000002f169aa
3 libpthread.so.0 0x00007fdb10696340
4 libc.so.6 0x00007fdb0f8becc9 gsignal + 57
5 libc.so.6 0x00007fdb0f8c20d8 abort + 328
6 libc.so.6 0x00007fdb0f8b7b86
7 libc.so.6 0x00007fdb0f8b7c32
8 swift 0x0000000000abc8c3
9 swift 0x0000000000ab898b
10 swift 0x00000000009eae8c swift::SILPassManager::runOneIteration() + 1820
11 swift 0x00000000009eb83b swift::SILPassManager::run() + 971
12 swift 0x00000000009f1096 swift::runSILDiagnosticPasses(swift::SILModule&) + 294
13 swift 0x00000000007648a9
14 swift 0x000000000076083c frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 2444
15 swift 0x000000000075b441 main + 2705
16 libc.so.6 0x00007fdb0f8a9ec5 __libc_start_main + 245
17 swift 0x000000000075a8bd