This is an automated email from the ASF dual-hosted git repository.

andreww pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new 934b128  Update type-inference.md updated layout of statement of 
version in which this first appears
934b128 is described below

commit 934b1284926dbc46d506a5c4d8bbaafbc932c6f9
Author: Andrew Wetmore <[email protected]>
AuthorDate: Mon Apr 6 13:27:19 2026 -0300

    Update type-inference.md updated layout of statement of version in which 
this first appears
    
    0.9.12
---
 features/as3/type-inference.md | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/features/as3/type-inference.md b/features/as3/type-inference.md
index 50966e5..3ed4021 100644
--- a/features/as3/type-inference.md
+++ b/features/as3/type-inference.md
@@ -24,12 +24,10 @@ permalink: /features/as3/type-inference
 
 Using the `-infer-types` compiler option
 
-[Apache Royale](https://royale.apache.org/){:target='_blank'} adds support for 
_type inference_, which enables the ActionScript compiler to automatically fill 
in missing type declarations on variables, fields, and function returns. The 
compiler can typically detect an appropriate type based on a variable's 
initializer or a function's return statements. This feature gives developers 
the ability to purposefully omit type declarations — which allows them to write 
less code, while still gain [...]
+Starting in **version 0.9.12**, [Apache 
Royale](https://royale.apache.org/){:target='_blank'} adds support for _type 
inference_, which enables the ActionScript compiler to automatically fill in 
missing type declarations on variables, fields, and function returns. The 
compiler can typically detect an appropriate type based on a variable's 
initializer or a function's return statements. This feature gives developers 
the ability to purposefully omit type declarations — which allows them to w 
[...]
 
 Traditionally, ActionScript has treated the type of a symbol with no 
explicitly declared type as the _any_ type `*`, and the compiler would emit a 
warning for the missing type declaration. When type inference is enabled, the 
compiler will skip the warning if a type other than `*` can be inferred from 
the initializer or return statements. If the intended type should actually be 
`*`, an explicit type declaration is encouraged.
 
-_Requires Apache Royale 0.9.12 or newer._
-
 ## Compiler option
 
 Royale does not enable type inference by default, to avoid potential backwards 
compatibility issues with existing AS3 code. To enable type inference in your 
application, use the `-infer-types` compiler option.
@@ -193,4 +191,4 @@ interface L extends J, K {}
 interface M extends J, K {}
 ```
 
-Interface `L` extends `J` and `K`, and interface `M` also extends `J` and `K`. 
If type inference were to find a common base interface between `L` and `M` by 
checking which interfaces they both extend, should it choose `J` or should it 
choose `K`? Neither `J` nor `K` takes precedence in any way, so neither is the 
better option. With that in mind, type inference must fall back to the `*` 
type, and the developer can explicitly declare a type to prevent a compiler 
warning.
\ No newline at end of file
+Interface `L` extends `J` and `K`, and interface `M` also extends `J` and `K`. 
If type inference were to find a common base interface between `L` and `M` by 
checking which interfaces they both extend, should it choose `J` or should it 
choose `K`? Neither `J` nor `K` takes precedence in any way, so neither is the 
better option. With that in mind, type inference must fall back to the `*` 
type, and the developer can explicitly declare a type to prevent a compiler 
warning.

Reply via email to