Denis Zharkov
1bb40afada
Simplify compatibility mode with ll=1.0 on JDK dependent built-ins
...
A lot of problem arise with current solution
(loading them with lowpriority annotation + additional call checkers):
- We errorneously treated ArrayList.stream as an existing method, while
it's just a fake override from List
- The same problem arises when creating a class delegating to List.
Also the latter case is failing with codegen internal error
(see issue KT-16171)
The negative side of this solution is that instead of reporting meaningful
diagnostic, there will be UNRESOLVED_REFERENCE.
But it seems to be better than having strange problems like ones described above.
#KT-16073 Fixed
#KT-16171 Fixed
2017-02-08 16:04:19 +03:00
Mikhail Zarechenskiy
d84c303029
Do not report 'const' inapplicability on property of error type
...
#KT-12477 Fixed
2017-02-08 15:42:48 +03:00
Mikhail Zarechenskiy
e7ea076093
Do not apply constant folding for non built-in functions
...
#KT-15872 Fixed
2017-02-08 15:42:39 +03:00
Mikhail Zarechenskiy
935f7b1cc1
Add warning if constant conforms to infinity or zero
...
#KT-3805 Fixed
2017-02-08 15:42:33 +03:00
Sergey Igushkin
292f010e59
Fixed Kotlin2JsCompile not picking dependencies from configurations other than compile.
...
Example:
apply plugin: 'kotlin2js'
dependencies {
...
testCompile "org.jetbrains.kotlin:kotlin-test-js:$kotlin_version"
}
Here, the `:compileTestKotlin2Js` task did not pick the dependency and used the `compile` classpath.
This has been fixed.
Also, fixed `testCompileTestCouldAccessProduction` and added `testJsCustomSourceSet`.
2017-02-08 14:36:18 +03:00
Mikhail Glukhikh
607e205ad4
Resolve to descriptor: call safe version in background (~ isApplicable) #KT-12261 Fixed
...
Also #KT-11010 Fixed
Also #KT-12881 Fixed
Also #KT-16162 Fixed
2017-02-08 13:55:34 +03:00
Dmitry Jemerov
00003684e8
Add test for converting a string literal to UAST
2017-02-08 11:29:53 +01:00
Dmitry Jemerov
5dc178460e
Update UAST to 1.0.10; move uast-kotlin tests to Kotlin project
2017-02-08 11:29:53 +01:00
Alexander Udalov
cfe159181d
Deprecate kotlin.reflect.findAnnotation with ERROR
2017-02-08 13:05:27 +03:00
Alexander Udalov
5987e8a47c
Annotate findAnnotation and IllegalPropertyDelegateAccessException with SinceKotlin(1.1)
2017-02-08 13:05:27 +03:00
Alexander Udalov
845d6526b0
Annotate new API in runtime.jvm with SinceKotlin(1.1)
2017-02-08 13:05:27 +03:00
Dmitry N. Petrov
5e10a9d506
Merge pull request #1027 from JetBrains/rr/matveev
...
Override acceptChildren method in IrSetterCallImpl
2017-02-08 12:38:29 +03:00
Alexey Sedunov
615c316262
Kotlin Gradle Plugin: Postpone friend dependency collection until the actual compilation as it may cause an error during Gradle-IDEA project synchronization
...
#KT-16174 Fixed
2017-02-08 11:57:00 +03:00
Alexey Sedunov
4325632b3e
Kotlin Facet: Always parse argument string to proper compiler arguments bean
...
#KT-16137 Fixed
#KT-16157 Fixed
#KT-16206 Fixed
2017-02-08 11:56:59 +03:00
Alexey Andreev
9d6f4d7770
JS: don't treat library without JS metadata as error, report warning and continue instead. See KT-16158
2017-02-08 11:29:30 +03:00
Alexey Andreev
ffca68d85e
JS: escape quotes in some diagnostics with parametrized messages
2017-02-08 11:29:29 +03:00
Mikhael Bogdanov
37a94eaf07
Use appropriate ApiVersion if LanguageVersion is specified in test
2017-02-08 09:10:22 +01:00
Mikhael Bogdanov
5095ef1ea4
Revert 'Temporary disable new intrinsics usage in ieee754 arithmetic'
2017-02-08 09:10:22 +01:00
Denis Zharkov
80638ebc99
Prohibit unsupported suspend operators
...
contains/get/set operators don't work properly on both backends
Also add box test checking that 'compareTo' operator works just fine
#KT-16219 Fixed
2017-02-08 11:07:27 +03:00
Denis Zharkov
4921bd822d
Mark as UNSUPPORTED suspension points in default parameters
...
#KT-16124 Fixed
#KT-16218 Open
2017-02-08 11:07:26 +03:00
Denis Zharkov
4ee818addf
Add callee name to diagnostic about illegal suspension call
...
#KT-15938 Fixed
2017-02-08 11:07:26 +03:00
Anton Bannykh
a74fffeac8
JS: companion object dispatch receiver translation fixed (KT-16160); imported function inlining fixed.
2017-02-08 09:21:18 +03:00
Anton Bannykh
a2431f0d85
JS: fixed inlining functions called through inheritor ("fake" override) from another module (#KT-16144)
2017-02-08 09:19:50 +03:00
Dmitry Jemerov
0709561869
Add missing required type checks; correctly skip elements which have no UAST equivalents when converting an element together with parent; correctly convert string template entries (they aren't expressions)
2017-02-07 19:18:05 +01:00
Simon Ogorodnik
be7158eeb2
KT-16110 Missing suspend keyword completion inside generic arguments
...
#KT-16110 fixed
2017-02-07 19:48:05 +03:00
Roman Elizarov
5895c211a1
Fixed corotine context performance by using reference equality for contexts and keys
...
Added documentation explaining that keys are compared by reference
2017-02-07 19:33:46 +03:00
Ilya Matveev
0759ff7bc2
Override acceptChildren method in IrSetterCallImpl
2017-02-07 18:20:33 +03:00
Nikolay Krasko
2f0e7b54d5
Return old hack with returning null as file scope for standard scripts
...
(cherry picked from commit ef55bd1)
2017-02-07 15:16:04 +01:00
Ilya Gorbunov
b8de78dd43
Deprecate javaClass with replacement this::class.java.
...
Suppress deprecation in diagnostics tests.
2017-02-07 16:30:22 +03:00
Sergey Igushkin
d6a60424a9
Weakened testSuppressWarnings() so that it doesn't fail on the environment STRONG_WARNING.
2017-02-07 16:19:40 +03:00
Ilya Chernikov
99b902f5f2
Fix version calculation code
...
(cherry picked from commit fb74040)
2017-02-07 13:45:22 +01:00
Ilya Chernikov
f6ce74edb3
Set jvmTarget property for repl compilation from sys prop or java version, fixes KT-16126
...
(cherry picked from commit 4cf2bce)
2017-02-07 13:45:12 +01:00
Alexey Sedunov
396e9afffd
Compiler Configuration: Minor UI improvements
2017-02-07 15:36:39 +03:00
Alexey Sedunov
0c331a3846
Kotlin Facet: Support multiple configuration editor
...
#KT-15914 Fixed
2017-02-07 15:36:38 +03:00
Alexey Sedunov
8849d0e2a3
Kotlin Facet: Combine "General" and "Compiler" tabs
2017-02-07 15:36:37 +03:00
Ilya Gorbunov
03cdc20d64
Update public API dump: new coroutine builder intrinsics
2017-02-07 14:42:00 +03:00
Denis Zharkov
52f1194247
Update public API dump: areEqual helpers for ieee 754 comparisons
2017-02-07 14:41:58 +03:00
Ilya Gorbunov
d4d647ab00
Remove public synthetic annotation holder methods from public API dump.
2017-02-07 14:41:56 +03:00
Ilya Gorbunov
970490e097
Revert "Update rendered public API". This reverts commit a10c6f00f9.
...
Revert "Update stdlib reference and binary compatibility test data". This reverts commit 2d02e5106f .
2017-02-07 14:41:31 +03:00
Mikhail Zarechenskiy
d7093db5c5
Allow to use emptyArray in annotation as argument
...
#KT-14236 Fixed
2017-02-07 14:07:20 +03:00
Mikhail Zarechenskiy
9f0403f72c
Fix exception at accidentally wrong annotation argument type
...
#KT-13740 Fixed
2017-02-07 14:07:13 +03:00
Mikhail Zarechenskiy
655cf82534
Copy compileTimeInitializer for const property descriptor
...
#KT-15802 Fixed
2017-02-07 14:07:06 +03:00
Denis Zharkov
81c3edfc00
Refine cc7f0e2d83
...
getDispatchReceiver/getExtensionReceiver always return not-null value,
but in the absence of receiver this value is equal StackValue.none(), i.e.
has a size 1
The tests were passing because of the problems with the test framework:
4b9e20ab8c
2017-02-07 13:12:02 +03:00
Denis Zharkov
4b9e20ab8c
Rethrow boxError in case of test failure
2017-02-07 12:48:06 +03:00
Denis Zharkov
cc7f0e2d83
Fix codegen problem with safe-call on suspension point with two receivers
...
#KT-16145 Fixed
2017-02-07 11:56:37 +03:00
Denis Zharkov
a10c6f00f9
Update rendered public API
2017-02-07 11:32:10 +03:00
Denis Zharkov
9697196473
Put startCoroutineUninterceptedOrReturn header to common stdlib
2017-02-07 11:08:27 +03:00
Denis Zharkov
4f6a77cf38
Introduce createCoroutineUnchecked intrinsic
...
Also use it for buildSequence implenentation
#KT-16155 Fixed
2017-02-07 11:08:27 +03:00
Roman Elizarov
9a71a20ad6
Docs for startCoroutineUninterceptedOrReturn
2017-02-07 11:07:04 +03:00
Denis Zharkov
230564fb4a
Minor. Get rid of code duplications for resume call wrapping in stdlib
...
Use processBareContinuationResume instead
2017-02-07 11:07:04 +03:00