File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
working/augmentation-libraries Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -390,6 +390,14 @@ More specifically:
390
390
` augment super ` expression which executes the original initializer
391
391
expression when evaluated.
392
392
393
+ If the variable declaration in the original library does not have a type
394
+ annotation, then the type is inferred only using the original library's
395
+ initializer. (If there is no initializer in the original library, then the
396
+ variable is inferred to have type ` dynamic ` like any non-augmented variable.
397
+ * This ensures that augmenting a variable doesn't change its type. This is
398
+ necessary to ensure that macros running after signatures are known can't
399
+ change the signature of a declaration.*
400
+
393
401
** TODO: What if the augmenting variable doesn't have an initializer?**
394
402
395
403
It is a compile-time error if:
You can’t perform that action at this time.
0 commit comments