Mikhail Zarechenskiy
a086d9f7df
Update forgotten FIR test
2020-06-05 16:30:09 +03:00
Mikhail Zarechenskiy
6c5806f971
Add test for obsolete issue
...
#KT-38161 Obsolete
2020-06-05 16:30:08 +03:00
Roman Golyshev
f9b3daabd1
Change testData for ShortenRefsTestGenerated to not use sql package
...
- Those packages are missing in the mockJdk 1.8 in intellij repository,
and it leads to those tests failing in kotlin-ide repository
- Test in `ShortenRefsTestGenerated` do not fail, but they are working
for the wrong reason (they do not shorten unresolved references)
2020-06-05 16:03:51 +03:00
Roman Golyshev
7d662bf5d1
Change testData for IntentionsTestGenerated to avoid using javax and sql packages
...
- Those packages are missing in the mockJdk 1.8 in intellij repository,
and it leads to those tests failing in kotlin-ide repository
2020-06-05 16:03:51 +03:00
Mikhail Zarechenskiy
22b558110d
Don't apply Unit-conversion for expressions that return Nothing type
2020-06-05 15:59:31 +03:00
Vladimir Ilmov
3634cbe3cb
(LightClasses) resolve of annotations fast-path
2020-06-05 13:27:10 +02:00
Vladimir Ilmov
991f12bd73
(LightClasses) while looking for accessors we expect them to be taken from single class
2020-06-05 13:27:09 +02:00
Vladimir Ilmov
c0144d2161
(LightClasses) minor improvement in annotation order check
2020-06-05 13:27:09 +02:00
Dmitry Petrov
4e7901b807
Bootstrap: 1.4.20-dev-117
2020-06-05 14:12:13 +03:00
Mikhail Zarechenskiy
fb812301b2
Add test to preserve behaviour
...
It's important to have ambiguity in these cases to introduce overload
resolution by suspend-modifier without breaking changes in future
Relates to #KT-23610
2020-06-05 14:07:08 +03:00
Mikhail Zarechenskiy
e72401c5f4
Don't allow coercing receivers from signed to unsigned constants
2020-06-05 13:24:22 +03:00
Mikhail Zarechenskiy
bfa648972f
Introduce call checker for Unit-conversions
2020-06-05 13:24:21 +03:00
Mikhail Zarechenskiy
6b0a803d14
Allow suspend-conversion for callable references as part of adaptation
2020-06-05 13:24:21 +03:00
Mikhail Zarechenskiy
6b58be377e
Fix chained conversions for subtypes of functional types
2020-06-05 13:24:20 +03:00
Mikhail Zarechenskiy
71cbe97688
Introduce Unit-conversions for simple arguments
2020-06-05 13:24:20 +03:00
Mikhail Zarechenskiy
f08a45f2d4
Refactoring: rename files to avoid "util" suffixes
2020-06-05 13:24:19 +03:00
Mikhail Zarechenskiy
a4af833d55
Narrow down the range for compatibility warning to callee expression
2020-06-05 13:24:19 +03:00
Mikhail Zarechenskiy
4bd622c1c5
Refactoring: rename method to make it more specific
2020-06-05 13:24:18 +03:00
Mikhail Zarechenskiy
718f23b34f
Compatibility warning for references to companion via name (KT-13934)
2020-06-05 13:24:18 +03:00
Dmitry Gridin
3fdf048e51
Regenerate Serialization* tests
2020-06-05 17:13:28 +07:00
Pavel Kirpichenkov
8ca5d3b6f9
Update library to source analysis mode configuration
...
Persist analysis flag in the same xml where anchor mapping reside instead
of using properties. This makes it possible to save config in VCS.
#KT-24309 In Progress
2020-06-05 11:14:02 +03:00
Pavel Kirpichenkov
8ed4424e3e
Clean up API of AbstractResolverForProject
...
Resolution anchors are IDE-specific.
Creating dedicated methods for them in AbstractResolverForProject leads to meaningless
implementation in non-IDE resolvers. Now this method is implemented only
for IDE resolver and accessed through JvmPlatformParameters.
#KT-24309 In Progress
2020-06-05 11:14:01 +03:00
Ilya Goncharov
80a310540e
[Gradle, JS]Remove failed on variant aware resolution tests on kotlin2js
...
Because kotlin2js is deprecated, it is not actual to support tests which are failed because changes in Gradle.
Seems kotlin2js doesn't and didn't and work with Gradle > 5.3
2020-06-05 10:50:08 +03:00
Dmitriy Novozhilov
ee3beea327
[FIR] Cache files with plugin annotations
2020-06-05 10:34:01 +03:00
Dmitriy Novozhilov
6c5181d8ce
[FIR-PLUGIN] Add status transformer for default visibility
2020-06-05 10:34:01 +03:00
Dmitriy Novozhilov
1f80f35ce6
[FIR] Don't cache importing scopes while resolving plugin's annotations
2020-06-05 10:34:01 +03:00
Dmitriy Novozhilov
1ffe438fa1
[FIR-PLUGIN] Update AllOpenStatusTransformer according to previous commit
2020-06-05 10:34:00 +03:00
Dmitriy Novozhilov
514cbc77fc
[FIR] Add owners to FirStatusTransformerExtension.transformStatus
2020-06-05 10:34:00 +03:00
Dmitriy Novozhilov
b79d6aced4
[FIR] Add resolve phase for resolving arguments of plugin's annotations
2020-06-05 10:34:00 +03:00
Dmitriy Novozhilov
73b738b7ff
[FIR] Replace resolved flag with resolve status enum for annotation calls
2020-06-05 10:33:59 +03:00
Vladimir Ilmov
4f1b7b38b2
(Resolve) lightweight resolve annotations
...
relates to #KT-38653
2020-06-05 00:19:16 +02:00
Toshiaki Kameyama
46ab338ea6
"Convert anonymous function to lambda expression" intention: add necessary lambda type parameter
...
#KT-37748 Fixed
2020-06-04 23:38:29 +03:00
Dmitry Petrov
d27c7ce86f
Bootstrap: 1.4.20-dev-65
2020-06-04 22:28:36 +03:00
Ilmir Usmanov
8cc5f2abfb
Forbid val field initialization inside EXACLTY_ONCE lambda
...
unless the lambda is inline. This way, final field will remain final.
2020-06-04 21:26:48 +02:00
Vyacheslav Karpukhin
6d6a228057
Android import: binary-compatible setting of the BuildType attribute
2020-06-04 20:57:54 +02:00
Vyacheslav Karpukhin
39a3f5e7d9
Android import: better value source for BuildTypeAttr
2020-06-04 20:57:54 +02:00
Vyacheslav Karpukhin
1f638f52d5
Android import: setting BuildType attribute for kotlin android compilations
2020-06-04 20:57:54 +02:00
Sergey Igushkin
e4e70f1b5b
VariantAwareDependenciesIT.kt: remove compile/runtime/... configurations
2020-06-04 20:42:12 +03:00
Steven Schäfer
3291cf7a6e
JVM IR: Mark lateinit fields as NotNull
...
This is needed for compatibility with the JVM backend.
2020-06-04 17:52:56 +02:00
Sergey Igushkin
52b29b53bc
Fixup BuildCacheRelocationIT: Gradle 5.6.1 -> 5.6.4 (AGP requirement)
2020-06-04 17:53:15 +03:00
Mikhail Glukhikh
6ad37eb7a8
Unmute two more FIR BB tests
2020-06-04 17:26:27 +03:00
Mark Punzalan
802beb49a6
Use TypeSubstitutor to get the substituted underlying type for inline
...
classes, instead of MemberScope.
The primary motivation was to fix issues around type-mapping for inline
classes in FIR, which uses wrapped descriptors that have empty
MemberScopes.
2020-06-04 17:03:55 +03:00
Mikhail Glukhikh
88b130308d
Revert accidental test data change introduced in 0d6e3093
2020-06-04 16:34:40 +03:00
Mikhail Glukhikh
0ce47f2f12
[FIR TEST] Mute 2 BB tests broken by 0d6e3093
2020-06-04 16:34:39 +03:00
Alexander Udalov
5647a935a2
JVM IR: do not generate DefaultImpls delegate for collection fake overrides
...
In the newly added test, prior to this change, JVM IR was generating
DefaultImpls classes with calls to things like
`kotlin/collections/MutableList$DefaultImpls.spliterator` and other
default methods present in JDK 8+. This obviously didn't make much
sense. Although these weren't explicitly mentioned anywhere in the
bytecode, they caused some validation tools to report errors (e.g.
animalsniffer used in arrow).
2020-06-04 14:27:46 +02:00
Vladimir Ilmov
47c25982b6
(ResolveElementCache) KtAnnotationEntry resolveToDescriptor added
2020-06-04 14:23:45 +02:00
Ilya Goncharov
c5aa35e016
[Gradle, JS] All regular text printed to DEBUG
2020-06-04 15:02:56 +03:00
Ilya Goncharov
97e4d23d75
[Gradle, JS] Filter warning with source maps
...
#KT-39377 fixed
2020-06-04 15:02:54 +03:00
Ilya Goncharov
69b9a2e98a
[Gradle, JS] Remove trailing commas from webpack config
...
#KT-39377 fixed
2020-06-04 15:02:39 +03:00
Ilya Goncharov
4bbead6200
[Gradle, JS] Remove custom source-map-loader
...
#KT-39377 fixed
2020-06-04 15:02:12 +03:00