Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0170-sr8475.swift
Rintaro Ishizaki 5217b68f08 [Parse] Set ErrorType to invalid ParamDecl
TypeChecker assumes invalid decl has valid type.

https://bugs.swift.org/browse/SR-8475
rdar://problem/43057057
2018-08-09 15:55:33 +09:00

9 lines
130 B
Swift

// RUN: not %target-swift-frontend -typecheck %s
func receive() {}
func test() {
receive { (dat: Container<>) in
dat
}
}