Mikhail Glukhikh
09766ae2ae
Reformat: AddNameToArgumentFix
2018-08-07 11:30:31 +03:00
Mikhail Glukhikh
06d339639f
Fix "Add name to argument" (disable reformatting in quick-fix text)
...
Four relevant quick-fix tests should be fixed after it
2018-08-07 11:30:31 +03:00
Mikhail Glukhikh
28484f31e7
Fix "Remove @ from annotation argument" (make consistent PSI)
...
Three relevant quick-fix tests should be fixed after it
2018-08-07 11:30:31 +03:00
Dmitry Savvinov
9ad2edbe85
Bump stubs versions after 5ab79a111d
2018-08-07 10:22:46 +03:00
Dmitry Savvinov
bd9254597d
Fix testdata after switching idea version to 182
...
The source of testdata change is following commit from the
intellij-community repo:
d2bfe3d14bfa48af585f1faddc9a0c37dc05e724
It changes how Java-resolution resolves constructors:
- before, *any* PsiMethod without type reference was treated as
constructor
- now, PsiMethod without type reference is treated as constructor
only if their *names also match*
In particular, in this test, 'void () {}', surprisingly, doesn't have a
type reference ('void' is parsed as PsiErrorElement:Identifier
expected), its name is '<unnamed>', and its visibility is
'package-private' (!)
Therefore, previously we thought that 'Nameless' has package-private
constructor and were reporting INVISIBLE_MEMBER.
Now we don't see any constructor so we add default constructor, which has
public-visibility -> error is gone.
Note that this change affects behavior only when "red" code is already
present in the project (for "green" code, assumption "method without type
reference is a constructor" is indeed correct).
2018-08-07 10:18:25 +03:00
Dmitry Savvinov
a71f09022c
Fix testdata after switching idea version to 182
...
The source of changes is commit the following commit in
intelllij-community repo:
b2b723fa449b16bb1da8102a5efdc219977fefe0 speedup java class resolve a bit
Eseentially, it makes Java resolve (which Kotlin reuses) accept first
matching candidate from explicit named import, instead of continuing
search.
Hence, behavior in cases where several conflicting imports are present,
has changed: before, reference to such names were unresolved, now it's
candidate from first import (see also test UsageMixed.java in the
intellij-community repo).
Therefore, previously we saw such types as undeclared and reported
MISSING_DEPENDENCY_CLASS on them (assuming they are not present in
classpath); now we see such types as properly resolved, so error is
gone.
Because behavior has changed only in case there already was "red" code,
it is not a BC and we can just accept changes.
2018-08-07 10:18:25 +03:00
Alexey Sedunov
ed5709afdb
Misc: Fix compatibility issues with AS3.3C4
2018-08-06 21:39:17 +03:00
Vyacheslav Gerasimov
8231f5b259
Make handleElementRename overrides compatible with 183 platform
2018-08-06 20:24:46 +03:00
Mikhail Glukhikh
d7317c58e9
Move "Add test library to classpath" to irrelevant action list
...
This prevents inconsistencies like "Add JUnit 5.0" / "Add JUnit 5.2"
Should fix one relevant test
2018-08-06 19:04:12 +03:00
Mikhail Glukhikh
21be8d118d
Fix "ReplaceInfixOrOperatorCallFix" (make consistent PSI)
...
One relevant quick-fix test should be fixed after it
2018-08-06 19:04:11 +03:00
Mikhail Glukhikh
247bb912ba
Fix refactoring test (bunch file -> original file)
2018-08-06 19:04:09 +03:00
Mikhail Glukhikh
e15fc7da15
Fix two inspection tests (bunch file -> original file)
2018-08-06 19:04:07 +03:00
Mikhail Glukhikh
90245659ff
Fix testOptionalParameterAndLambdaComplex (related to KT-24694)
2018-08-06 19:04:05 +03:00
Mikhail Glukhikh
07ff2bff33
Reformat & cleanup: psiModificationUtils, especially PsiElement.replaced
2018-08-06 19:04:04 +03:00
Mikhail Glukhikh
1d2438e04e
Report SUPERTYPE_NOT_INITIALIZED even if no constructors in superclass
...
Before this commit, expect super-class without constructors did not
provoke SUPERTYPE_NOT_INITIALIZED. However, it should, but only
if sub-type is normal class (not an expect one).
So #KT-24597 Fixed
2018-08-06 19:02:24 +03:00
Vyacheslav Gerasimov
6db2037440
Make JavaToKotlinAction.convertFiles compatible with AS 3.3
2018-08-06 18:39:00 +03:00
Mikhail Zarechenskiy
1972387022
Fix test data after 6d4d244c28
2018-08-06 17:45:24 +03:00
Mikhail Zarechenskiy
659289b41a
Report diagnostics about experimentality on unsigned literals
...
#KT-25580 Fixed
2018-08-06 17:45:22 +03:00
Mikhail Zarechenskiy
55e7def3c1
Fix coercion for stack value property in case of inline classes
...
#KT-25771 Fixed
2018-08-06 17:45:20 +03:00
Bloder
f89803fe8f
Create samples for String.toLowerCase/toUpperCase
...
* Create toLowerCase method sample
* Create toUpperCase method sample
* Create toUpperCase sample reference in StringsJVM
* Create sample ref and doc of js impl toUpperCase
* Create sample ref and docs of js toLowerCase
* Add sample ref in toLowerCase expect fun
* Add sample ref in toUpperCase expect fun
2018-08-06 15:34:57 +03:00
Vyacheslav Gerasimov
e41f468bd8
Update compiler.pro for 183 platform
2018-08-06 15:08:03 +03:00
Vyacheslav Gerasimov
f712759a3e
Make isReferenceTo parameter NotNull, annotated in 183 platform
2018-08-06 15:08:03 +03:00
Ilya Chernikov
a3d719785c
Drop exception/stacktrace from logging warning if a script template is not found in the classpath
...
reducing clutter in logs and console
#KT-24754 fixed
2018-08-06 13:58:49 +02:00
Alexander Udalov
6f9441d3f4
Do not output empty non-root packages in tests with txt
...
Mostly to avoid listing every internal package in
kotlin-stdlib/kotlin-reflect, as in
https://github.com/JetBrains/kotlin/blob/acd5b62148d797ffd24c4811d1d663f0c1ae7885/compiler/testData/diagnostics/testsWithUnsignedTypes/conversions/conversionOfSignedToUnsigned.txt#L144
2018-08-06 13:43:32 +02:00
Alexander Udalov
ccb6410823
Rework and move the pull request checklist to a new section in ReadMe
...
Otherwise this text appears in numerous pull requests and contributors
do not understand what to do with it
2018-08-06 13:41:49 +02:00
Alexander Udalov
4c7bdf5437
Minor, fix typos in ReadMe
2018-08-06 13:41:49 +02:00
Mikhael Bogdanov
ddf6bdffcf
Move jvm ir tests to jvm ones
2018-08-06 13:57:43 +03:00
Natalia Selezneva
0e8b93bf35
Use IDELanguageSettingsProvider getting languageVersionSettings and targetPlatform during analysis
2018-08-06 10:41:42 +02:00
Ilya Chernikov
f2395bac2f
Use script compiler options to calculate target platform in IDE
...
#KT-25822 fixed
2018-08-06 10:41:41 +02:00
Vyacheslav Gerasimov
0cf6b26494
as32: Set since-build to 181.5281 (AS 3.2 Beta 5)
2018-08-06 11:15:50 +03:00
Mikhail Zarechenskiy
2ee483f92b
Do not generate bodies for functions from Any for light classes
...
#KT-25894 Fixed
2018-08-06 10:57:53 +03:00
Mikhail Zarechenskiy
ddf6c37e0e
Prohibit inline classes with special underlying types
...
#KT-25328 Fixed
#KT-23819 Fixed
2018-08-06 10:56:05 +03:00
Mikhail Zarechenskiy
6d4d244c28
Generate function from Any for inline classes same as for data classes
...
#KT-24873 Fixed
#KT-25293 Fixed
#KT-25299 Fixed
2018-08-06 10:56:01 +03:00
Mikhail Zarechenskiy
043ce1cb27
Support secondary constructors for inline classes
...
#KT-25614 Fixed
#KT-25246 Fixed
KT-25599 Will be fixed after recompilation of unsigned classes
2018-08-06 10:55:57 +03:00
Mikhail Zarechenskiy
064eb24d51
Refactoring: extract methods about constructor codegen out
...
#KT-25614 In Progress
2018-08-06 10:22:21 +03:00
Mikhail Zarechenskiy
e28c2ed549
Refactoring: extract codegen methods about functions from Any out
2018-08-06 10:22:17 +03:00
Mikhail Zarechenskiy
c253b39acf
Refactoring: extract generator for functions from Any
2018-08-06 10:19:46 +03:00
Mikhail Zarechenskiy
6244846107
Add functions from Any to the member scopes of inline classes
2018-08-06 10:19:43 +03:00
Mikhail Zarechenskiy
fdf538007c
Refactoring: extract logic about methods from Any for scopes out
2018-08-06 10:19:39 +03:00
Andrey Breslav
6e3497771d
Some notes on contributing language features
...
This is to provide some guidance for PRs like: https://github.com/JetBrains/kotlin/pull/1769
2018-08-06 06:32:40 +03:00
Vyacheslav Gerasimov
e4bf20a267
183: Set since-build to 183.1
2018-08-03 21:29:19 +03:00
Vyacheslav Gerasimov
ebb90f8260
183: Build against 183-SNAPSHOT
2018-08-03 21:29:19 +03:00
Vyacheslav Gerasimov
4996d81ea1
Add 183 rule to .bunch
2018-08-03 21:29:19 +03:00
Vyacheslav Gerasimov
5666e1ea93
Update versions.gradle.kts for 183
2018-08-03 21:29:19 +03:00
Vyacheslav Gerasimov
c7a00971fe
Fix source compatibility with 183 platform
2018-08-03 21:29:18 +03:00
Vyacheslav Gerasimov
57963d2e03
Remove asm-shaded sources downloading code since it is not published anymore
2018-08-03 21:29:18 +03:00
Nikolay Krasko
5ba877c144
Add empty test data files to make new test framework in 182 happy
2018-08-03 21:06:05 +03:00
Alexander Udalov
fe2251bfca
Run classifier usage checkers on function types
2018-08-03 18:03:52 +02:00
Nikolay Krasko
759ffafb0a
Render flexible types with enhancement as enhanced in IDE (KT-25622)
...
Main targets for the fix is completion, parameters info, inlay hints and
override/implement.
Other IDE functions might be affected.
#KT-24911 Fixed
#KT-25616 Fixed
#KT-25622 Fixed
2018-08-03 16:00:09 +03:00
Nikolay Krasko
653d1d00de
Option for rendering types with enhancement
2018-08-03 16:00:07 +03:00