- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.1k
Closed
Labels
SuggestionAn idea for TypeScriptAn idea for TypeScriptToo ComplexAn issue which adding support for may be too complex for the value it addsAn issue which adding support for may be too complex for the value it adds
Description
javac has the -source option. from https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javac.html:
source release
Specifies the version of source code accepted. The following values for release are allowed:
1.3
The compiler does not support assertions, generics, or other language features introduced after Java SE 1.3.
1.4
The compiler accepts code containing assertions, which were introduced in Java SE 1.4.
...
The use case is when a team wants to take advantage of bugfixes or features in the compiler, without committing to upgrade all their other tooling to understand new syntax or semantics.
For example, if I want to use @vladima pathMapping semantics, my users can start using the readonly modifier because it's also in the same version of TypeScript, now my other tooling fails because it uses TS 1.8
Metadata
Metadata
Assignees
Labels
SuggestionAn idea for TypeScriptAn idea for TypeScriptToo ComplexAn issue which adding support for may be too complex for the value it addsAn issue which adding support for may be too complex for the value it adds