Denis Zharkov
2e4c41c0d8
FIR: Drop PossiblyFirFakeOverrideSymbol
2020-11-06 14:44:28 +03:00
Denis Zharkov
7b48625b58
FIR: Remove FirCallableSymbol::overriddenSymbol
2020-11-06 14:44:27 +03:00
Denis Zharkov
78b374ec88
FIR: Do not set overriddenSymbol for KFunction::invoke
...
It has been probably set by mistake since overriddenSymbol is only used for
fake overrides
2020-11-06 11:32:39 +03:00
Denis Zharkov
a11b488c82
FIR: Add workaround for combination of intersection + delegated members
...
See org.jetbrains.kotlin.fir.Fir2IrTextTestGenerated.FirProblems#testDelegationAndInheritanceFromJava
2020-11-06 11:32:39 +03:00
Denis Zharkov
41f878e104
FIR: Adjust test data for type alias constructors
...
They are not SubstitutionOverrides anymore
2020-11-06 11:32:39 +03:00
Denis Zharkov
96c3436e73
FIR: Temporary adjust diagnostics test data
...
UPPER_BOUND_VIOLATED for type alias constructors is not supported properly
See KT-43142
2020-11-06 11:32:39 +03:00
Denis Zharkov
d58e66e79a
FIR: Merge both synthetic type alias constructor kinds
2020-11-06 11:32:39 +03:00
Denis Zharkov
f9aab77ce5
FIR: Simplify ConstructorProcessing relevant to type aliases
2020-11-06 11:32:39 +03:00
Denis Zharkov
8a949b0dcf
FIR: Use attribute instead of overriddenSymbol for synthetic type alias constructor
2020-11-06 11:32:39 +03:00
Denis Zharkov
4282e27d73
FIR: Get rid of usages of FirCallableSymbol::overriddenSymbol
2020-11-06 11:32:39 +03:00
Denis Zharkov
728c2a808f
FIR: Do not propagate overriddenSymbol at FirObjectImportedCallableScope
2020-11-06 11:32:39 +03:00
Denis Zharkov
037ba4d973
FIR: Simplify VariableStorage::isStable
2020-11-06 11:32:39 +03:00
Denis Zharkov
317d981472
FIR: Do not use overriddenSymbol for imported from object
2020-11-06 11:32:39 +03:00
Denis Zharkov
65119adb6a
FIR: Adjust test data. FakeOverride -> SubssitutionOverride
2020-11-06 11:32:39 +03:00
Denis Zharkov
3e37995004
FIR: Get rid of FirCallableSymbol::isFakeOverride and isIntersectionOverride
2020-11-06 11:32:39 +03:00
Alexey Tsvetkov
36387d97ad
Add IC metrics reporting
2020-11-05 23:26:46 +03:00
Alexey Tsvetkov
5bde6457b1
Metrics reporting utils
2020-11-05 23:26:46 +03:00
Alexey Tsvetkov
97a09680d5
Remove CompositeICReporterAsync
2020-11-05 23:26:42 +03:00
Zalim Bashorov
2c1e4c1769
[IR] Use more specific type (IrSimpleFunction) for accessors in IrLocalDelegatedProperty
2020-11-05 22:25:05 +03:00
Sergey Igushkin
11bc1c0753
Revert "Fix configuration cache issue in AbstractKotlinTarget"
2020-11-05 21:02:47 +03:00
Roman Artemev
8ca9e792e9
[KLIB] Make sure that referenced local anonymous class is deserialzied.
...
In case if such class is used an type argument for field type make sure
that field initializer is being read.
Check type recursively.
- fix KT-41143
- update test
2020-11-05 20:28:11 +03:00
Dmitriy Dolovov
0dd329d3d4
Gradle IT: Intercept and log Gradle process output on import failures
2020-11-05 18:51:16 +03:00
Dmitriy Dolovov
4de1bf8d35
Gradle IT: Move GradleProcessOutputInterceptor to the test framework
...
This is necessary to make GradleProcessOutputInterceptor available for
other tests, e.g. Gradle IT.
2020-11-05 18:51:08 +03:00
Dmitriy Dolovov
fae3ba35e9
Gradle, Native: More verbose logging in KotlinToolRunner
...
Especially for tools executed in a separate JVM process:
JVM options, Java system properties, custom ENV variables.
2020-11-05 18:51:02 +03:00
Dmitriy Dolovov
734dff6282
[Commonizer] Use compact variants of collections to reduce memory footprint
2020-11-05 18:50:56 +03:00
Dmitriy Dolovov
30bf7b87fe
Minor. Code formatted
2020-11-05 18:50:50 +03:00
Dmitriy Dolovov
f5bb60f7cd
[Commonizer] Refactor CIR type representation
...
1. Drop CirClassifierId
2. Specialized classes for each kind of types (classes, TAs, type parameters, flexible types).
3. TypeCommonizer now returns commonized type. In case of TAs this could be a completely new type
describing expect class or a new TA with the different underlying type.
2020-11-05 18:50:43 +03:00
Dmitriy Dolovov
2764550bbe
[Commonizer] Relax conditions for TA lifting-up
...
Allow lifting up matching TAs with non-empty list of type parameters
and non-empty list of type arguments in the expanded type.
2020-11-05 18:50:37 +03:00
Dmitriy Dolovov
cb2e94df16
[Commonizer] Minor. Convert approximation keys back to data classes
2020-11-05 18:50:31 +03:00
nataliya.valtman
45ce0c6c11
avoid failing KotlinGradleIT.testInternalTest for Windows agent
2020-11-05 13:43:02 +03:00
Sergey Igushkin
c839282f9b
Merge pull request #3878 from google/prr/hungnv/KT-43054-configurationCacheIssue
...
Fix configuration cache issue in AbstractKotlinTarget
2020-11-05 13:26:40 +03:00
Victor Petukhov
90ea64a0e5
Don't report warning about changing execution order for varargs if it's inside an annotation
...
^KT-43110 Fixed
2020-11-05 13:18:00 +03:00
Victor Petukhov
f052bc341c
Don't report warning about implicitly inferred Nothing for call arguments if there is non-Nothing return type
...
^KT-43108 Fixed
2020-11-05 13:17:59 +03:00
Andrei Klunnyi
7859287337
[KT-40688] Inlay Hints: lambda hints removal on editing
...
Due to the platform API limitation lambda related hints are treated
separately to all others. Hints removal on editing is not an exclusion
and is now supported as well.
2020-11-05 10:10:19 +00:00
Jinseong Jeon
b3b09ea9b7
FIR: adjust spec testData after DFA changes:
...
* recording type statements for null assignments
* element-wise join by default
2020-11-04 16:35:42 +03:00
Jinseong Jeon
a5389b067b
FIR DFA: use element-wise join everywhere
2020-11-04 16:35:42 +03:00
Jinseong Jeon
771c839d74
FIR DFA: element-wise join at merging points of try expression
2020-11-04 16:35:42 +03:00
Jinseong Jeon
bd173ebebc
FIR DFA: isolate effects between blocks in try expression
2020-11-04 16:35:42 +03:00
Jinseong Jeon
1f1e1828a7
FIR CFG: reconfigure exception throwing paths in try expression
2020-11-04 16:35:42 +03:00
Jinseong Jeon
146036010c
FIR DFA: add tests about smartcasts in/after try-catch-finally
2020-11-04 16:35:42 +03:00
Mads Ager
2c8c47399a
[JVM_IR] Enable KotlinAgainstJava and remaining JavaAgainstKotlin test.
2020-11-04 14:16:37 +01:00
Yunir Salimzyanov
24345bb6b3
Prevent NPE while fetching muted tests from Teamcity server
2020-11-04 16:14:01 +03:00
MikeKulasinski-visa
bc2b396ecd
kotlin.native.cocoapods.targets can be a custom list of architectures ( #3861 )
...
Co-authored-by: Mike Kulasinski <mike.kulasinski@payworks.com >
Co-authored-by: Ilya Matveev <ilya.matveev@jetbrains.com >
2020-11-04 18:21:12 +07:00
Mads Ager
0279068214
[JVM_IR] Follow old backend in bridge visibility and varargs marking.
...
The old backend makes bridges for protected and package-private
methods public. Also, for bridges for vararg methods, the vararg
marker is not on the bridge.
These differences seem minor but are visible via reflection, so
we might as well follow the old backend.
2020-11-04 12:03:06 +01:00
Ilmir Usmanov
326768e8b5
Minor. Update test data
2020-11-04 00:20:39 +01:00
Steven Schäfer
bd4e2a283c
JVM IR: Don't generate null checks on value parameters of private operator functions
...
The null check on the extension receiver of private operator functions
is a special case and doesn't extend to value parameters.
2020-11-03 21:44:25 +01:00
Steven Schäfer
d4cb521433
JVM IR: Fix names for SAM callable references with inline class return types
...
This fixes the ABI issues in KT-42879.
2020-11-03 18:33:34 +01:00
Denis Zharkov
aa81041415
FIR: Fix DiagnosticsTestGenerated when FIR starts requesting light classes
...
Became necessary after fixing loading Java annotation from deserialization
2020-11-03 18:30:15 +03:00
Denis Zharkov
a936386e53
FIR: Add more complicated workaround for OverloadResolutionByLambdaReturnType
...
That helps for minOfOrNull/maxOfOrNull
2020-11-03 18:30:15 +03:00
Denis Zharkov
4612f26bfb
FIR: Add workaround for OverloadResolutionByLambdaReturnType
...
Mostly, that should help for existing flatMap usages
^KT-43129 Submitted
2020-11-03 18:30:15 +03:00