Skip to content

Commit e3ea721

Browse files
author
David Ungar
committed
Add a test case.
1 parent 44cc14a commit e3ea721

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Trips an assertion if an ASTScope lookup is attempted into the innermost
2+
// DeclContext of the extension.
3+
4+
struct Ty{}
5+
6+
@foo extension Ty {} // expected-error {{unknown attribute 'foo'}}
7+
8+
// RUN: %target-swift-frontend -typecheck %s -verify

0 commit comments

Comments
 (0)