Skip to content

Commit a2a60e0

Browse files
author
David Ungar
committed
Test nonempty-brace-in-brace
1 parent 5d5776b commit a2a60e0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: not %target-swift-frontend -typecheck %s 2>&1 | %FileCheck %s --check-prefix=CHECK-NO-ASSERTION
2+
3+
// Used to trip an assertion
4+
5+
public struct Foo {
6+
func bar() {
7+
var copySelf = self
8+
repeat { copySelf
9+
10+
private extension String {}
11+
12+
// CHECK-NO-ASSERTION-NOT: Assertion

0 commit comments

Comments
 (0)