Skip to content

Commit 099db02

Browse files
authored
ban type parameters for macros (#2976)
1 parent ec0ac06 commit 099db02

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

working/macros/feature-specification.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ Authors: Jacob MacDonald, Bob Nystrom
44

55
Status: **Work In Progress**
66

7-
### Changelog
8-
9-
- *2022/01/25:* Specify that identifiers in strings can only refer to local
10-
declarations.
11-
127
## Introduction
138

149
The [motivation][] document explains why we are working on static
@@ -416,6 +411,11 @@ constructors are invoked, and their limitations.
416411
- All macros must implement at least one of the `Macro` interfaces.
417412
- Macros cannot be abstract.
418413
- Macro classes cannot be generated by other macros.
414+
- Macro classes cannot contain generic type parameters.
415+
- It is possible that in the future we could allow some restricted form of
416+
generic type parameters for macro classes, but it gets tricky because the
417+
types in the user code instantiating the macro are not necessarily present
418+
in the macros own transitive imports.
419419

420420
*Note: The Macro API is still being designed, and lives [here][api].*
421421

0 commit comments

Comments
 (0)