Mikhail Zarechenskiy
e67543e08e
Revert "Update test data as operator 'mod' became deprecated"
...
This reverts commit 040f4e90ce .
2016-12-14 15:29:00 +03:00
Mikhail Zarechenskiy
42d867b3bf
Support number conversion for binary 'rem' operator
2016-12-14 15:29:00 +03:00
Mikhail Zarechenskiy
62ac91a121
Add operator 'rem' to builtIns
...
Also deprecate operator 'mod'
2016-12-14 15:29:00 +03:00
Mikhael Bogdanov
268d55104c
Don't generate delegation to java default methods
...
#KT-15226 Fixed
2016-12-14 11:20:04 +01:00
Stanislav Erokhin
653d589f98
FIx tests after renaming platform to header.
2016-12-13 23:08:47 +03:00
Alexander Udalov
d0fa9bac75
Introduce '-Xskip-runtime-version-check' command line option
2016-12-13 21:09:00 +03:00
Alexander Udalov
6aaf2c7c4d
Decrease number of reported runtime version diagnostics
...
If there's at least one runtime newer than the compiler, do not report that
it's inconsistent with the correct runtime
2016-12-13 21:09:00 +03:00
Alexander Udalov
2c527d89ab
Improve diagnostics for runtime versions consistency checker
...
- report the diagnostic on the actual problematic file
- output the list of all runtime jars if min version != max version
2016-12-13 21:09:00 +03:00
Alexander Udalov
d3e5580ab9
Use MavenComparableVersion in runtime version consistency checker
...
LanguageVersion is an enum consisting of the current and all previous versions
only, so with it we won't be able to detect the language version of a future
runtime
2016-12-13 21:08:59 +03:00
Dmitry Petrov
1866a33781
Check classpath version consistency.
...
Add 'Kotlin-version' attribute to kotlin-runtime and kotlin-reflect JARs.
2016-12-13 21:08:59 +03:00
Mikhail Glukhikh
ab72460f28
Rename: allDependentModules --> allDependencyModules
2016-12-13 19:07:07 +03:00
Mikhail Glukhikh
052a5033b5
PLATFORM_DECLARATION_WITHOUT_DEFINITION rendering changed (platform is included into diagnostic text now)
2016-12-13 19:06:08 +03:00
Mikhail Glukhikh
7649232f86
Platform header annotator: implementation + simple multi-platform highlighting tests #KT-14905 Fixed
2016-12-13 19:02:23 +03:00
Mikhail Glukhikh
57da92b862
Infrastructure change: module descriptor now knows its platform kind & its sources kind
2016-12-13 18:53:55 +03:00
Stanislav Erokhin
59efedf610
Rename platform to header.
2016-12-13 18:00:00 +03:00
Mikhael Bogdanov
dc5c3a478c
Always use default 1.6 build target unless of 'jvm-target' option
2016-12-13 14:51:27 +01:00
Mikhail Zarechenskiy
ef662a5679
Declare intrinsic rem operator for primitives
2016-12-13 16:33:33 +03:00
Alexey Andreev
d9cf15a665
JS: deparenthesize LHS of assignment before choosing appropriate AccessTranslator. Fix KT-15169
2016-12-13 14:05:25 +03:00
Alexey Andreev
52347aa901
JS: increase JS metadata version due to some breaking changes (JsModule, for example)
2016-12-13 14:00:10 +03:00
Alexey Andreev
9dc16f0564
JS: prohibit runtime annotations on external declarations. Warn about runtime annotation in remaining cases. See KT-13895
2016-12-13 13:58:41 +03:00
Stanislav Erokhin
dbe8edda5f
Remove propertyDelegate and fix unused parameter checker for provideDelegate.
2016-12-12 23:14:09 +03:00
Stanislav Erokhin
9dc9fb578f
Rename toDelegateFor to provideDelegate.
2016-12-12 23:14:07 +03:00
Alexey Andreev
a01fac9d10
JS: support toDelegateFor in JS backend (see KT-15163)
2016-12-12 23:14:05 +03:00
Mikhael Bogdanov
937a933150
Support local 'toDelegatedFor' properties
2016-12-12 23:14:02 +03:00
Mikhael Bogdanov
c5e14a2059
Some new tests for 'toDelegateFor'
2016-12-12 23:14:01 +03:00
Dmitry Petrov
97d5bbf1c2
toDelegateFor: JVM BE implementation
2016-12-12 23:13:59 +03:00
Dmitry Petrov
e2b6d2d849
Drop 'propertyDelegated' convention (without additional deprecation ceremony).
2016-12-12 23:13:58 +03:00
Dmitry Petrov
5ddf8e60e6
Use delegate initializer expression resolution scope for 'toDelegateFor' resolution.
2016-12-12 23:13:57 +03:00
Dmitry Petrov
a6bc7271ae
operator toDelegateFor: add front-end test for local delegate property
2016-12-12 23:13:56 +03:00
Dmitry Petrov
2ee31916c7
'createDelegate' operator renamed to 'toDelegateFor'
2016-12-12 23:13:55 +03:00
Dmitry Petrov
e2ba288323
'createDelegate' operator convention:
...
- resolution & inference
- additional diagnostic for language feature support
2016-12-12 23:13:54 +03:00
Dmitry Petrov
d3ab0f066e
'createDelegate' operator declaration
2016-12-12 23:13:53 +03:00
Dmitry Petrov
558e8aaebb
DelegatedPropertyResolver: convert to Kotlin & cleanup.
2016-12-12 23:13:52 +03:00
Dmitry Petrov
85276c27f0
DelegatedPropertyResolver: .java --> .kt
2016-12-12 23:13:51 +03:00
Dmitry Jemerov
7e92cf2af7
Don't create light classes for platform declarations
...
#KT-15137 Fixed
2016-12-12 20:47:45 +01:00
Dmitry Jemerov
d6cd1486c6
Implement supertype access methods in KtLightClassForFacade without delegate access (EA-92490 - ISE: KtLightClassForFacade.getClsDelegate)
2016-12-12 17:50:27 +01:00
Dmitry Jemerov
48513c7b1d
Better diagnostics for "no resolver for module descriptor" situation (EA-72838 - ISE: EmptyResolverForProject.resolverForModuleDescriptor)
2016-12-12 17:50:26 +01:00
Dmitry Jemerov
7f02c67fbf
Avoid NPE while calculating assertion message (EA-92384 - NPE: KtElementImpl.getContainingKtFile)
2016-12-12 17:50:19 +01:00
Roman Elizarov
8affb2726f
Pluggable Synthetic Objects
2016-12-12 18:43:26 +03:00
Dmitry Jemerov
13b8494373
Remove unnecessary cyclic dependency between KtStubElementTypes and KtNodeTypes
...
#KT-15074 Fixed
2016-12-12 16:26:58 +01:00
Alexey Andreev
1db4765801
JS: unmute shared box test that now passes
2016-12-12 14:30:43 +03:00
Alexander Udalov
91cf09dc3b
Fix test on IS_PRE_RELEASE
...
Use DeserializedDescriptorResolver.IS_PRE_RELEASE instead of
KotlinCompilerVersion.IS_PRE_RELEASE because the former is updated correctly in
tests
(cherry picked from commit 95b4b6e7d92b112603be9f8243aac9c39be7df67)
2016-12-12 11:29:22 +03:00
Ilya Gorbunov
b3b2a5eb91
Update ranges codegen light-analysis testData.
2016-12-11 21:26:06 +03:00
Yan Zhulanow
2f50bd8c80
Minor: Fix light analysis tests (rebase to master)
2016-12-11 21:03:05 +03:00
Yan Zhulanow
3f8accc2bf
Kapt3: Fix '$' in function generic signatures (KT-15148)
2016-12-09 20:29:23 +03:00
Yan Zhulanow
3c77242da2
Kapt3: Fix parameter names in JvmOverloads-generated methods (KT-15024)
2016-12-09 20:28:41 +03:00
Yan Zhulanow
b9a0a4f3db
Kapt3: Ensure that field types and method return types are not anonymous (KT-14997)
2016-12-09 20:28:31 +03:00
Yan Zhulanow
cbef0250aa
Allow to turn the first parameter of a SAM-converted lambda into the receiver (KT-12848)
2016-12-09 20:01:21 +03:00
Yan Zhulanow
fc8cc217dc
Do not create local variables in an abstract class inside OptimizationMethodVisitor, MethodNode forbids this.
2016-12-09 20:01:19 +03:00
Yan Zhulanow
c705f0c437
NoArg: Add IDE integration
2016-12-09 20:01:14 +03:00