Files
swift-mirror/test/NameLookup/custom-attr-on-extension.swift
Hamish Knight 5b99c2020f NFC: Re-organize NameBinding tests
The directory currently seems to have a mix of
tests for import resolution and name lookup.
Therefore split it into two directories;
ImportResolution and NameLookup.
2020-03-29 18:51:09 -07:00

10 lines
245 B
Swift

// RUN: %target-swift-frontend -typecheck %s -verify
// Trips an assertion if an ASTScope lookup is attempted into the innermost
// DeclContext of the extension.
struct Ty{}
@foo extension Ty {} // expected-error {{unknown attribute 'foo'}}