Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0190-rdar48852402.swift
Slava Pestov 88e41231cc Sema: Skip non-single-expression closure bodies in MiscDiagnostics
This is a defensive move to avoid duplicated work and guard against crashes
when a multi-expression closure body or TapExpr has not been type checked yet.

Fixes <rdar://problem/48852402>.
2019-04-02 00:25:24 -04:00

13 lines
203 B
Swift

// RUN: not %target-typecheck-verify-swift
struct Foo {
public func subscribe(_: @escaping () -> Void) {}
public static func foo() {}
func bind() {
subscribe {
_ = "\(foo)"
}
}
}