File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,11 @@ the place where the type annotation was omitted.
85
85
There are two things you can do with an ` OmittedTypeAnnotation ` :
86
86
87
87
- Pass it directly as a part of a ` Code ` object.
88
+ - This is only allowed after phase one (the types phase). Using an omitted
89
+ type in phase one is not allowed and will cause an exception.
90
+ - Users should be instructed to add a type to the location where the
91
+ omitted type came from in this case. It is guaranteed to be in the same
92
+ file as the macro annotation, so they can always do this.
88
93
- When the final augmentation library is created, the actual type that was
89
94
inferred will be used (or ` dynamic ` if no type was inferred).
90
95
- Explicitly ask to infer the type of it through the builder apis (only
You can’t perform that action at this time.
0 commit comments