Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0148-rdar35773761.swift

5 lines
214 B
Swift

// RUN: %target-typecheck-verify-swift
let b: () -> Void = withoutActuallyEscaping({ print("hello crash") }, do: { $0() })
// expected-error@-1 {{cannot convert value of type '()' to specified type '() -> Void'}}