Skip to content

Commit e2c6e8e

Browse files
author
Davide Italiano
committed
[Parse] Add a test for the change.
1 parent 856fec7 commit e2c6e8e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/Parse/closure-debugger.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// RUN: not %target-swift-frontend %s -typecheck -debugger-support 2>&1 | %FileCheck %s --check-prefix=DEBUG
2+
// RUN: not %target-swift-frontend %s -typecheck 2>&1 | %FileCheck %s --check-prefix=NODEBUG
3+
4+
// DEBUG: error: use of unresolved identifier '$0'
5+
// NODEBUG: error: anonymous closure argument not contained in a closure
6+
$0

0 commit comments

Comments
 (0)