Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0040-rdar23899799-broken-bool.swift
Chris Lattner 0a8db5daf6 Fix <rdar://problem/23899799> Simple closure expression crashed SourceKit
which is a straight-forward logic bug that the static analyzer would have caught.
2016-02-27 22:41:00 -08:00

6 lines
129 B
Swift

// RUN: not %target-swift-frontend %s -emit-silgen
// rdar://23899799
let sol1 = { $1 ? "Dr. " + $0 : $0 }
sol1("Seuss", true)