Natalia Selezneva
9dc57567e4
Kotlin code fragments in markdown should have script definition because they are parsed as scripts
2018-12-25 15:32:27 +03:00
Natalia Selezneva
4e6fb84bae
Create one instance of StandardIdeScriptDefinition per project
...
ScriptModuleInfo for scripts outside source roots in compared by virtualFile and script definition.
So when we use ScriptDefinitionsManaged.getDefaultScriptDefinition we shouldn't create a new one on each call
EA-132810 - assert: DiagnoseUnknownModuleInfoReporter.report
2018-12-25 15:32:26 +03:00
Natalia Selezneva
ba2f211384
Remove ScriptModificationListener from 183 branch
...
Since 183 changes in .gradle.kts files are tracked correctly by platform and notification 'Gradle project needs to be imported' is shown when those files are modified
2018-12-25 15:32:26 +03:00
Natalia Selezneva
6042a3a0f7
Scripts: fix NPE during accessing ScriptDependenciesCache
...
Getting value from SLRUMap needs write lock, because it can move value from one queue to another
EA-105195 Fixed
2018-12-25 15:32:26 +03:00
Natalia Selezneva
8ceae8bd6d
Fix 'Invalid file' exception during script dependencies update
...
Fix EA-125840 - assert: FileManagerImpl.findFile
2018-12-25 15:32:25 +03:00
Natalia Selezneva
816a8d74a2
Fix order of initialization of project language version in ConfigureKotlinTest
...
Project.getLanguageVersion with contextModule == null returns latest stable version.
But Module.getLanguageVersion save it's version to project setting if useProjectSettings checkbox is selected.
So Project.getLanguageVersion can return different versions before and after invocation Module.getLanguageVersion
2018-12-25 15:32:25 +03:00
Dmitriy Dolovov
073c02c0f5
CIDR: Ability to relax upper limit of product version in K/N plugin
...
Issue #KT-29006:fixed
2018-12-25 18:54:21 +07:00
Dmitry Petrov
61ebe6a9aa
Minor: add non-intrinsified cases for javaObjectType/javaPrimitiveType
2018-12-25 13:23:48 +03:00
Toshiaki Kameyama
d00236d366
"Remove redundant backticks": Fix false positive for underscore
...
#KT-28592 Fixed
2018-12-25 10:37:18 +03:00
Mikhail Zarechenskiy
84222afe2f
Fix exception when expected type is subtype of a function type
...
#KT-28984 Fixed
#EA-132850 Fixed
2018-12-24 19:41:51 +03:00
Simon Ogorodnik
68c65a5014
KT-25156: Fix stack overflow on top level destructuring with lambda init
...
Support destructuring in additional resolve pass (resolveToElements)
#KT-25156 Fixed
2018-12-24 18:29:48 +03:00
Simon Ogorodnik
fefd2bf427
KT-23268: Highlight destructuring declaration entries as properties
...
#KT-23268 Fixed
2018-12-24 18:29:47 +03:00
Dmitry Petrov
a4897641d4
Minor: mute some tests in JS/JS_IR
2018-12-24 16:10:35 +03:00
Dmitry Petrov
6768ae02c3
Support inline classes in javaObjectType/javaPrimitiveType
...
#KT-28290 Fixed Target versions 1.3.30
2018-12-24 16:10:31 +03:00
Dmitry Petrov
5abbf3562b
Unbox possibly null inline class value mapped to primitive type
2018-12-24 16:09:48 +03:00
Dmitry Petrov
2f6c4a0472
Use original method signature to call accessor for hidden constructor
...
#KT-28855 Fixed Target versions 1.3.30
2018-12-24 16:09:44 +03:00
Ilmir Usmanov
10f0a2f660
Obtain correct captured suspend local function
...
if we call the function inside, for example, lambda.
#KT-28844 Fixed
2018-12-24 15:58:10 +03:00
Mikhael Bogdanov
ac5f5bd453
Get rid of jvm specific code in some tests
2018-12-24 13:40:40 +01:00
Mikhail Glukhikh
7d51be17c8
Extract 'PsiElement.hasJavaResolutionFacade()' (related to KT-28199)
2018-12-24 15:00:57 +03:00
Mikhail Glukhikh
d599bb160f
Launch constructor delegation search only for elements from a file
...
This should fix EA-133791
2018-12-24 14:58:25 +03:00
Mikhail Glukhikh
399ec5c961
Launch convention method reference search only for elements from a file
...
#KT-28199 Fixed
2018-12-24 14:57:53 +03:00
Mikhail Zarechenskiy
e4a4d1169e
Prohibit JvmOverloads on constructors of annotation classes
...
In LV >= 1.4 & -progressive
#KT-25702 Fixed
2018-12-24 12:48:00 +03:00
Mikhail Zarechenskiy
958aeff94b
Prohibit type parameters for local variables in LV >= 1.4 & -progressive
...
#KT-8341 Fixed
2018-12-24 12:47:58 +03:00
Mikhail Zarechenskiy
e509649132
Fix mapping of platform inline class types
...
For the inline class:
```
inline class IC(val x: Int)
```
Type (IC..IC?) should be mapped to the wrapper `IC`
because it can hold object and also because it does so for primitives
#KT-28983 Fixed
2018-12-24 12:32:22 +03:00
Dmitriy Dolovov
7c9ca99388
CLion: New version 2018.3.2 (183.4886.39)
2018-12-24 11:35:10 +07:00
Max Medvedev
ef49e792b0
AppCode/CLion: patch java plugin xmls in AppCode as well
2018-12-21 23:43:17 +03:00
Bernhard Posselt
19906f13ea
Update Maps.kt
2018-12-21 22:01:01 +03:00
Bernhard Posselt
300f68e0d8
Add documentation on how merging works for toMap() for Iterables, Arrays and Sequences
2018-12-21 22:01:01 +03:00
Mads Ager
48bd99730d
Suppress final failure which relies on line numbers.
2018-12-21 16:20:45 +01:00
Mads Ager
3a11322506
Enable bytecode text tests for the JVM_IR backend.
2018-12-21 16:20:45 +01:00
Mikhael Bogdanov
d1efac617d
Get rid of reduntant jvm parts in tests
2018-12-21 16:09:12 +01:00
Mikhael Bogdanov
f59b6a350f
Specify JVM target backend for other java related tests
2018-12-21 16:09:11 +01:00
Mikhael Bogdanov
d76cb32781
Specify JVM target backend for test with java type inheritance
2018-12-21 16:09:11 +01:00
Mikhael Bogdanov
3c048d7f57
Specify JVM target backend for test with casts to jvm types
2018-12-21 16:09:10 +01:00
Mikhael Bogdanov
3e6f8db975
Specify JVM target backend for test with 'import kotlin.reflect.jvm'
2018-12-21 16:09:09 +01:00
Mikhael Bogdanov
a75d57a20b
Remove redundant jvm reflection import
2018-12-21 16:09:09 +01:00
Mikhael Bogdanov
a2904b8e53
Regenerate test data
2018-12-21 16:09:08 +01:00
Mikhael Bogdanov
f4e532e449
Specify JVM target backend for test with '@JvmXXX' annotations
2018-12-21 16:09:07 +01:00
Mikhael Bogdanov
a8a1bfca72
Specify JVM target backend for test with '// File: *.java'
2018-12-21 16:09:06 +01:00
Mikhael Bogdanov
3ef06c1e44
Specify JVM target backend for test with 'import java...'
2018-12-21 16:09:06 +01:00
Mikhael Bogdanov
f36519d4f5
Specify JVM target backend for test with '.javaClass' usage
2018-12-21 16:09:05 +01:00
Mikhael Bogdanov
1217d3591b
Specify JVM target backend for test with '::class.java' usage
2018-12-21 16:09:04 +01:00
Mikhael Bogdanov
a2e4553040
Minor. Remove obsolete supressions
2018-12-21 16:09:04 +01:00
Ilya Chernikov
c4b3580c31
Implement script filename extensions discovery via artifact transforms
...
to avoid using never-up-to-date task and make discovery cacheable and
checkable for up-to-dateness
#KT-28469 fixed
2018-12-21 15:44:48 +01:00
Ilya Chernikov
a3217982f7
Fix script filename extension discovery from asm-readed class
...
and improve diagnostics on definition loading failure
2018-12-21 15:44:28 +01:00
Ilya Gorbunov
7c7c11e916
Fix current Kotlin version to avoid changing it in local builds
2018-12-21 17:21:50 +03:00
Shagen Ogandzhanian
6dd69ea3d6
Support named constructors in idl-backed code generation
...
this resolves https://youtrack.jetbrains.com/issue/KT-27361
2018-12-21 14:53:59 +01:00
Ilya Gorbunov
68f898153c
Fix link to sealed classes doc page
...
#KT-28829 Fixed
2018-12-21 16:25:43 +03:00
Marcin Moskala
686cfa6fd2
Fix common misspellings
2018-12-21 16:13:42 +03:00
Marcin Moskala
33961acb8d
Fix typos in spec-docs
2018-12-21 16:06:51 +03:00