Mikhael Bogdanov
5ef37148ea
Add flag for proper array convention with default args calls
2020-05-13 08:51:57 +02:00
Mikhail Zarechenskiy
0b227c1d66
Explicitly disable suspend-conversion while work in BE isn't ready
2020-04-22 16:10:45 +03:00
Mikhail Zarechenskiy
537a59d6ca
Introduce basic suspend conversion in FE
...
#KT-15917 In Progress
2020-04-22 16:10:44 +03:00
Vladimir Dolzhenko
67fec903f6
Read file content under readAction in ToFromOriginalFileMapper
...
Relates to #EA-212072
2020-04-20 08:16:24 +00:00
Alexander Udalov
87da4be9bb
Move parametersMap.kt to 'cli-common'
...
Also reformat and slightly refactor it. This allows to get rid of
dependency of 'util' on 'kotlin-reflect-api'.
2020-03-28 21:30:08 +01:00
Alexander Udalov
9dd8b1821a
Move CoroutineLanguageVersionSettingsUtil to 'config'
...
This allows to get rid of dependency of 'util' on 'descriptors'.
2020-03-28 21:30:06 +01:00
Alexander Udalov
db9347cb56
Move JVM-specific analysis flags to 'config.jvm'
2020-03-28 21:30:06 +01:00
Alexander Udalov
7bb77e5672
Move JS binary version utilities to 'js.config'
...
This allows to replace dependency of 'util' on 'deserialization' with
dependency on 'descriptors'.
2020-03-28 21:30:06 +01:00
pyos
4558d48481
JVM: add a language feature to omit *E between SMAP strata
...
Fixes #KT-37704
2020-03-25 10:33:59 +01:00
Vyacheslav Gerasimov
bab87c9837
Build: Extract compiler version to separate module to improve caching
...
Compiler version changes every build and makes impossible to reuse
caches for heavy tasks such as compiler proguard. We may fix that by
adding version module directly to the final jar.
2020-03-05 18:05:53 +03:00
Vladimir Dolzhenko
d1a29df581
Revert "Added AllowNullableArrayArgsInMain (1.4+) language setting"
...
#KT-35965 Fixed
2020-03-05 14:08:27 +01:00
Mikhail Zarechenskiy
2a4caf6dc8
Enable new inference in the compiler
2020-02-13 10:22:42 +03:00
Igor Yakovlev
48db96b66d
Improved kotlin decompiler range indexes
...
Fixed #KT-30628
2020-02-11 17:42:12 +03:00
Victor Petukhov
fa924065ca
Enable NonStrictOnlyInputTypesChecks since 1.3
...
This is important for the case of the enabling new inference in 1.3 (so that there is no error in certain cases)
2020-01-30 19:20:12 +03:00
Pavel Kirpichenkov
9902643a26
Remove unsupported versions from kotlin compiler tab in settings
...
KT-36146 In progress
2020-01-29 21:40:50 +03:00
Pavel Kirpichenkov
913ed71863
Update error about unsupported language and API versions
...
Set first supported version to 1.3
Add property for oldest depecated language version in order to control unsupported ones
Report error on attempts to manually disable language feature from unsupported versions
Update test data, drop compatibility tests for features from unsupported versions
KT-36146 In progress
2020-01-29 21:40:44 +03:00
Alexander Udalov
dcf6a2199a
Generate JvmOverloads methods as final
...
#KT-33240 Fixed
2020-01-29 18:01:57 +01:00
Mikhail Zarechenskiy
b647d2c645
Prolong deprecation cycle for several restrictions until 1.5
...
ProhibitInvisibleAbstractMethodsInSuperclasses &
ProhibitNonReifiedArraysAsReifiedTypeArguments were implemented in
1.3.70, so actually they should be enabled only in 1.5
2020-01-24 17:29:55 +03:00
Ilya Goncharov
79fa3c2c30
[Gradle, JS] Fix check on klib
2020-01-22 14:52:45 +03:00
Ilya Chernikov
b5ac35dec1
Implement automatic loading of .main.kts scripts support
...
also fix discovery from ScriptDefinitionsProvider
2020-01-21 17:42:48 +01:00
Alexander Udalov
5321a6af33
Forbid spread operator in signature-polymorphic calls
...
#KT-35226 Fixed
2020-01-21 15:57:35 +01:00
Alexander Udalov
b6feec4115
Add language version 1.5
2020-01-21 15:57:35 +01:00
Alexey Tsvetkov
2d598d50d7
Expand compilation scope for IC before backend is run
...
Sometimes IC raises compilation errors when rebuild succeeds.
This happens because IC uses serialized decriptors
for non-dirty files. Serialized descriptors can be different
from source file descriptors. For example, a source file
may contain an implicit return type or an implicit visibility
for overridden methods, but serialized descriptors always
contain explicit return types & methods' visibilities.
These problems can be solved by expanding a scope of incremental compilation
just after the analysis, but before error reporting & code generation.
In other words, we need to compare descriptors before error reporting and code generation.
If there are new dirty files, current round of IC must be aborted,
next round must be performed with new dirty files.
This commit implements IC scope expansion for JS Klib compiler
#KT-13677
#KT-28233
2020-01-21 16:36:36 +03:00
Mikhail Zarechenskiy
8350cf7d14
FIC: rename FunctionConversion -> FunctionalConversion
2020-01-17 19:37:47 +03:00
Mikhail Zarechenskiy
55935cc98a
FIC: introduce language feature, modifiers checks and basic tests
2020-01-17 19:36:00 +03:00
Victor Petukhov
68576da494
Temporary change sinceVersion to null for ProhibitVarargAsArrayAfterSamArgument
...
It will be set to `KOTLIN_1_5` as it will be added.
2020-01-17 19:04:04 +03:00
Dmitry Petrov
135cd6fd77
Enable ProperIeee754Comparisons in KOTLIN_1_4
2020-01-17 14:15:32 +03:00
Nikolay Krasko
ca49672a7a
Advance version to 1.4
2020-01-17 10:33:50 +03:00
Ilya Gorbunov
3d7c7c4656
Add problem zip file name when unable to open it
2020-01-16 16:01:55 +03:00
Alexander Udalov
621936e951
Do not generate Throws attribute for delegated members from Kotlin interfaces
...
#KT-31763 Fixed
#KT-35834
2020-01-16 12:43:09 +01:00
Mikhail Zarechenskiy
588259a034
Add feature that allows references to synthetic properties with warning
...
See KT-35933 for details
2020-01-16 09:37:34 +03:00
Dmitry Petrov
3d85e5da5f
Enable ProperVisibilityForCompanionObjectInstanceField in 1.4
2020-01-15 16:40:06 +03:00
Pavel Kirpichenkov
2a4e235e34
[NI] Decrease only input types check diagnostic level to warning
2020-01-10 13:05:40 +03:00
Dmitriy Novozhilov
5dfe100ae5
Allow use reference to reified type parameters in contracts since 1.4
2019-12-26 17:43:28 +03:00
Dmitriy Novozhilov
f083edfac2
Allow contracts on final non-override members since 1.4
2019-12-26 17:43:27 +03:00
Denis Zharkov
e8131d6e30
Choose Java field during overload resolution with a pure Kotlin property
...
^KT-31244 Fixed
2019-12-19 10:53:31 +03:00
Dmitriy Novozhilov
aa8578b675
Allow null operators for result and using Result as return type with enabled InlineClasses
2019-12-19 10:22:45 +03:00
Dmitriy Novozhilov
ee36fb903f
Allow use expression of array type as named argument for vararg
2019-12-19 10:22:44 +03:00
Victor Petukhov
07269661b4
NI: Allow to resolve to functions with SAM conversion and passing array without spread as vararg (with warning)
...
^KT-35224 Fixed
2019-12-12 23:46:16 +03:00
Mikhael Bogdanov
c335015c05
Generate proper exception table
...
Don't forget to split nested try blocks without finally block
on generating finally blocks from outer ones.
#KT-31923 InProgress
2019-12-12 13:33:39 +01:00
Mikhael Bogdanov
df96841c9d
Prohibit protected method calls from inline function
...
#KT-21178 Fixed
2019-12-02 08:04:26 +01:00
Ilya Chernikov
27ff2d7816
Prohibit using array based on non-reified type parameters as reified type arguments
...
#KT-31227 fixed
2019-11-18 09:32:52 +01:00
Ilya Chernikov
808000e458
Implement warning when non-abstract classes containing abstract members invisible from that classes
...
#KT-27825 fixed
2019-11-12 19:08:53 +01:00
Leonid Startsev
ebb7e434c8
Explicit Api mode: Renamings after design discussions
...
Change CLI flag to -Xexplicit-api=strict|warning. 'Disable' state and 'mode' suffix are left out as implementation details.
Change intention title to 'make X public explicitly'
Do not report 'no explicit visibility' on property accessors
Set DECLARATION_SIGNATURE as a range for report
Rename internal diagnostic from _MIGRATION to _WARNING
2019-11-06 19:53:59 +03:00
Leonid Startsev
7058492b55
Explicit Api mode: prototype with check for missing explicit visibility
...
Add cli flag with 3-state switch
2019-11-06 19:53:58 +03:00
victor.petukhov
62d204f4d6
Support trailing comma
...
^KT-34743 Fixed
2019-11-01 19:40:20 +03:00
Vladimir Dolzhenko
26255f8501
Added AllowNullableArrayArgsInMain (1.4+) language setting
2019-10-29 19:20:35 +01:00
Vladimir Dolzhenko
30229da95a
Don't render pure error types in OverrideMemberChooserObject
...
#KT-34379 Fixed
2019-10-21 17:18:23 +02:00
Mikhael Bogdanov
c78dbaf6b3
Initializer default values in 'tailrec' method in proper order
...
#KT-31540 Fixed
2019-10-17 13:06:36 +02:00
Vladimir Dolzhenko
30b98aaeb7
Keep attachments of cause exception in KotlinExceptionWithAttachments and provide elements in attachments in case of errors during kotlin idea resolution
...
Relates to EA-210942, EA-209622 etc
2019-10-17 10:22:32 +02:00