Yan Zhulanow
a2be789d37
Pill: Move out Pill tasks from buildSrc
2020-02-14 17:35:16 +09:00
Yan Zhulanow
6f1b3e0f17
Pill: Fix pre-built run configurations
2020-02-14 17:35:15 +09:00
Yan Zhulanow
73813aef23
Pill: Support all Gradle source sets, not just main/test
2020-02-14 17:35:15 +09:00
nataliya.valtman
3acf7a4679
TCServiceMessageOutputStreamHandlerTest: fix tests
...
Fix test to support updates in ServiceMessageParser and attributes
remove TCServiceMessageOutputStreamHandlerTest from ignored tests
2020-02-14 11:14:17 +03:00
Dmitriy Novozhilov
389dcff125
[FIR] Discard argument with spread in place of non-vararg parameter
2020-02-14 09:18:54 +03:00
Dmitriy Novozhilov
50ac8eb95b
[FIR] Add smartcast info to argument of invoke of function with receiver
2020-02-14 09:18:54 +03:00
Dmitriy Novozhilov
4fbed9b363
[FIR] Add builder for FirExpressionWithSmartcast
2020-02-14 09:18:53 +03:00
Dmitriy Novozhilov
1da036ac98
[FIR-TEST] Split outdated dfa test to separate tests
2020-02-14 09:18:53 +03:00
Dmitriy Novozhilov
1dd7417746
[FIR] Fix configuring label name for lambdas in light tree builder
2020-02-14 09:18:53 +03:00
Dmitriy Novozhilov
6b378cab29
[FIR] Don't render lambda bodies in arguments of calls in cfg dump
2020-02-14 09:18:53 +03:00
Dmitriy Novozhilov
28c95b1108
[FIR] Don't use psi for rendering control flow graph
2020-02-14 09:18:53 +03:00
Dmitriy Novozhilov
a4b53b4a20
[FIR] Fix passing flow from contracts with form returns(false) ...
2020-02-14 09:18:53 +03:00
Dmitriy Novozhilov
643a4b9c3b
[FIR] Support makeDefinitelyNotNull for intersection types
2020-02-14 09:18:53 +03:00
Dmitriy Novozhilov
b71e4ebb3f
[FIR-TEST] Add !DUMP_CFG directive. Get rid of cfg diagnostic tests
2020-02-14 09:18:52 +03:00
Dmitriy Novozhilov
f495c4e215
[FIR-TEST] Move stdlib resolve tests out from resolve directory
2020-02-14 09:18:52 +03:00
Dmitriy Novozhilov
90021f3ece
[FIR-TEST] Reorganize tests for data flow analysis
2020-02-14 09:18:52 +03:00
Dmitriy Novozhilov
89fa3572ec
[FIR-TEST] Move tests for solved issues from problems directory
2020-02-14 09:18:52 +03:00
Toshiaki Kameyama
0c9720f20c
ReplaceGetOrSetInspection: do not report for 'get' with spread operator
...
#KT-36171 Fixed
2020-02-14 08:47:10 +03:00
Mark Punzalan
b782e8f0f0
Add IR equivalent of AbstractBytecodeListingTest and muted failures.
2020-02-13 23:44:53 +03:00
Mark Punzalan
06b6477d04
[JVM IR] Do not add nullability annotation for functions that return
...
platform types.
This behavior matches the non-IR backend, which was added in
f16dcdd8a9 .
2020-02-13 23:44:53 +03:00
Dmitry Petrov
0c984c5e62
PSI2IR tests for b29993739e85dbceb02d04a964741b1410a568f8
2020-02-13 23:43:04 +03:00
Jinseong Jeon
5a49ccac76
JVM_IR: Relax bailout condition for SAM conversion generation.
...
Previously, resolved call is expected to have SAM converted argument map
if SamConversionPerArgument is enabled. However, if SAM argument is
followed by vararg parameter and an array _without_ a spread operator is
passed, New Inference left a type mismatch error on a resolved call, which
made that resolved candidate filtered out. Instead, another resolution
result wihtout SAM converted arugment map will be provided.
All other logics, such as adding SAM conversion type op and lowering SAM
conversion and/or call references, are already there for resolved calls
without SAM converted argument map. This change just relaxes the bailout
condition so that array passed to vararg after SAM argument can be
handled in JVM IR.
2020-02-13 23:43:03 +03:00
Kristoffer Andersen
f782ea075b
[JVM IR] ProperVisibilityForCompanionObjectInstanceField
...
- Uncomment tests
- Add proper visibility to companion field
+ Make exception for interfaces -> they need to respect language versions 1.8
before they can put private members there.
- Adjust synthetic accessor lowering to look for enclosing classes with access
via companion object.
2020-02-13 21:50:48 +03:00
Igor Yakovlev
a67d97bdf8
Remove redundant fake facade classes
...
Fixed #KT-35122 #EA-218642 #EA-217640
2020-02-13 19:08:54 +03:00
Pavel Kirpichenkov
5d6d287faa
[NI] Refactor UnstableSmartCast diagnostic
...
Split diagnostic classes for unstable smartcast with different resolution applicability.
^KT-36264 Fixed
2020-02-13 18:02:38 +03:00
Pavel Kirpichenkov
15d744c3da
[NI] Continue resolution after unstable smart cast on receiver
...
The old inference cosideres candidates with unstable smartcast on
receiver unsuccessful, therefore another one may be selected.
KT-36264
2020-02-13 18:02:38 +03:00
Pavel Kirpichenkov
4997c9535c
Mute test, affected by changes in unstable smart casts
...
Revealed by changes in e02b7b58, but they are not the source of a bug
See KT-36459
2020-02-13 18:02:37 +03:00
Pavel Kirpichenkov
e40ba73950
[NI] Add resolution applicability for resolved candidates with error
...
New resolution applicability is needed in cases when error is found,
but candidate still should be selected. Currently there are two cases,
when this behaviour is required:
- unstable smartcast (choose candidate with non-nullable parameter)
- unknown lambda parameter type (against non-functional expected type)
KT-36264
2020-02-13 18:02:37 +03:00
Ilya Goncharov
4fa87d2caa
[Gradle, JS] Compilations with js type because of compatibility
...
- In kotlinx.html there is invocation of packageJson function on compilations["main"]
It can be casted in user script to KotlinJsCompilation, or override on plugin side
2020-02-13 17:49:46 +03:00
Steven Schäfer
76f8109ff6
JVM IR: Implement LookupLocation in IrSourceCompilerForInline
...
This is used when compiling calls to inline functions with a different
@JvmName for incremental compilation.
2020-02-13 14:46:35 +01:00
Alexander Udalov
3278451b07
JVM IR: do not generate certain special bridges as final
...
Special bridges which are generated as a replacement for a non-final
fake override and use invokespecial to call the already existing
implementation in the superclass, should not be final. Otherwise we
can't generate an override for the original Kotlin function in a
subclass with the same JVM signature.
2020-02-13 14:34:18 +01:00
Pavel Kirpichenkov
df046683cc
Revert "[NI] Report unsafe implicit invoke accordingly to OI"
...
This reverts commit b045adf83a .
2020-02-13 16:06:40 +03:00
Nicolay Mitropolsky
bf9d4f065b
Uast: eliminating the kotlin.uast.multiresolve.enabled, it is always true for a long time
2020-02-13 15:54:48 +03:00
Nicolay Mitropolsky
e4b7c39110
Uast: forcing kotlin.uast.force.uinjectionhost=true always
2020-02-13 15:54:48 +03:00
Mikhail Zarechenskiy
ee48580e06
[NI] Update test data
2020-02-13 15:01:39 +03:00
Ilya Kirillov
531a63bd19
Show experimental features panel only for non-stable plugin versions
...
Also, use registry as backend for features settings
2020-02-13 14:59:42 +03:00
Pavel Kirpichenkov
b045adf83a
[NI] Report unsafe implicit invoke accordingly to OI
...
There are several issues with unsafe desugaring for convention calls.
Proper fix is not implemented here (see design proposal KT-30872).
This commit only applies the old logic in the new inference.
^KT-30695 Fixed
2020-02-13 14:49:43 +03:00
Vladimir Dolzhenko
9d51180202
Guard resolve calls with runWithCancellationCheck
...
Relates to #KT-35135
2020-02-13 12:47:58 +01:00
Mikhail Zarechenskiy
74becc7e96
Fix compilation of idea module for old inference
...
Also, fix code in a way so it'll compile in NI & -progressive too
2020-02-13 14:46:02 +03:00
Vladimir Dolzhenko
918895b88f
Avoid using quite new ScratchFileService API
...
Relates to #KT-35918
2020-02-13 12:10:27 +01:00
Vladimir Dolzhenko
aa0c2486c3
Fix GenerateTests after performance tests modularization
2020-02-13 12:06:18 +01:00
Ilya Chernikov
b96109f23f
Add diagnostic code to the ScriptDiagnostic
...
to allow checking for specific errors, e.g. incomplete statements in
the REPL
2020-02-13 11:33:40 +01:00
Ilya Chernikov
77eacae958
[minor] drop unused dependencies
2020-02-13 11:33:40 +01:00
Ilya Chernikov
49d092cae8
[minor] add incomplete test to the repl tests
2020-02-13 11:33:40 +01:00
Ilya Chernikov
0761a17e2f
Fix embedding and relocation in main-kts
...
The relocation root different from the one in embeddable compiler
lead to "linking" errors for classes included in both jars, e.g.
Disposable. Reuse common root to avoid it.
2020-02-13 11:33:40 +01:00
Ilya Chernikov
514282fb0a
Use correct platform classloader on script evaluation in cli compiler
...
#KT-28475 fixed
also minor testing infrastruct refactoring
2020-02-13 11:33:40 +01:00
Mikhail Zarechenskiy
489c4ec5ec
Fix "progressive" warnings to fix compilation under progressive mode
2020-02-13 13:26:11 +03:00
Mikhail Zarechenskiy
3d28945ecb
[NI] Disable feature explicitly as it's required in test
2020-02-13 12:08:10 +03:00
Mikhail Zarechenskiy
7526162f6f
Mute one inline codegen test for NI
...
#KT-36448
2020-02-13 11:54:08 +03:00
Mikhail Zarechenskiy
3702d31cbc
Set latest stable version for diagnostic tests with unsigned types
2020-02-13 11:54:08 +03:00