Skip to content
Reproducing a simple crash of the compiler/playground (with closure?)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
EmptyApp
Swift-compiler-crash-closure-param.xcodeproj
Testing compiler crash.playground
Counter.swift
README.md

README.md

Swift: a compiler crash

Here is a sample project to reproduce a crash in the Swift compiler.

Don't know how to fix this. Issue seems to be tied to the closure parameter, but not really sure about this.

Any idea?

internal func changeCounter(
    atIndexPath indexPath: NSIndexPath,
    withUnary operation: ( Int ) -> Int
    )
{
    let section = Sections(rawValue: indexPath.section)
    if ( .counters == section )
    {
      value = operation(value)
    }
}
You can’t perform that action at this time.