Ilmir Usmanov
b7b5fd75b8
Minor. Fix tests
2018-08-30 14:57:50 +03:00
Ilmir Usmanov
e93683621a
Implement callSuspend and callSuspendBy functions as KCallable's
...
extension methods.
Also make isSuspend a member of KCallable.
#KT-21972: Fixed
2018-08-30 14:57:48 +03:00
Denis Zharkov
66315cee45
Fix coroutine-related test data
2018-08-30 14:57:46 +03:00
Denis Zharkov
3a7f8dcf3a
Allow calling some pieces of the experimental coroutine API
...
- Calling suspend functions is allowed
- Presence of suspend function type still makes declaration
unusable unless it belongs to a value parameter as a top-level type
containing less then three parameters
Still, warning should be emitted because they will become unsupported in 1.4
#KT-25683 In Progress
2018-08-30 14:57:41 +03:00
Alexander Udalov
9f4c8d5b81
Minor, fix test data
...
Language version 1.3 is no longer experimental
2018-08-30 14:57:35 +03:00
Alexander Udalov
02a9b03007
Report a warning or error if an old language version or API version is used
...
#KT-25823 Fixed
2018-08-30 14:57:31 +03:00
Anton Bannykh
a83baee67b
review fixes + DCE data update + test (un)muting
2018-08-30 14:57:27 +03:00
Anton Bannykh
2663d9751a
JS: support unsigned constants inside string templates
2018-08-30 14:57:24 +03:00
Anton Bannykh
6103df0b31
JS: support signed constant expressions as unsigned primitive arguments
2018-08-30 14:57:22 +03:00
Anton Bannykh
934e11aa60
JS: support unsigned primitive vararg's
2018-08-30 14:57:20 +03:00
Anton Bannykh
944c5b6044
JS: modify a test to work around Kotlin/JS Double.toString problems
2018-08-30 14:57:18 +03:00
Anton Bannykh
a11c4871ea
JS: equals, hashCode, toString support in inline classes
2018-08-30 14:57:16 +03:00
Alexander Udalov
254d943e07
Fix some tests in compileKotlinAgainstCustomBinaries
2018-08-30 14:57:07 +03:00
Ilya Gorbunov
2df78fc81a
Introduce common ArithmeticException
...
Make divisionByZero test still fail in JS after introducing ArithmeticException
2018-08-30 14:56:59 +03:00
Alexander Udalov
ceb909d261
Inherit KType from KAnnotatedElement, implement KType.annotations
...
#KT-16795 Fixed
2018-08-30 14:56:57 +03:00
Alexander Udalov
b55fc818d1
Support JvmName on annotation constructor parameters
...
#KT-25372 Fixed
2018-08-30 14:56:42 +03:00
Alexander Udalov
dc1f4c7d5b
Generate get-targeted annotations on annotation constructor parameters
...
This change would also make NotNull annotations to be generated on
non-primitive annotation methods, but we skip this deliberately because
annotation methods never return null on JVM anyway
#KT-25287 Fixed
2018-08-30 14:56:40 +03:00
Alexander Udalov
cbc92bc9a1
Add KClass.sealedSubclasses to get direct subclasses of sealed class
...
#KT-14657 Fixed
2018-08-30 14:56:21 +03:00
Ilya Gorbunov
1b1713a849
Simplify long constants in range iteration tests
2018-08-30 14:56:19 +03:00
Ilya Gorbunov
bb1ce52267
Add support for generating unsigned progression iteration codegen tests
2018-08-30 14:56:17 +03:00
Ilya Gorbunov
f010231ff7
Change range iteration tests so they are runnable on all platforms
...
Remove JS and Native backend exclusions
2018-08-30 14:56:13 +03:00
Alexander Udalov
877dfd8ff4
Fix generic signature of FunctionN type visible from Java
2018-08-30 14:55:56 +03:00
Ilmir Usmanov
cf1f194f8b
Add warning on -Xcoroutines flag use
...
The only case when warning is not reported is -Xcoroutines=default.
But this is OK until the flag is removed completely.
2018-08-30 14:55:50 +03:00
Ilya Gorbunov
5f3a7f0147
Use Char.MIN_VALUE and MAX_VALUE in tests
2018-08-30 14:55:45 +03:00
Ilya Gorbunov
26b258af6a
Unignore passing tests with unsigned literals in JS
2018-08-30 14:55:37 +03:00
Mikhail Zarechenskiy
d94b47bcd3
Support other kinds of translation for unsigned literals
2018-08-30 14:55:34 +03:00
Mikhail Zarechenskiy
61efbea9a8
Initial support of unsigned literals translation in JS
2018-08-30 14:54:27 +03:00
Alexander Udalov
c369e67e9f
Revert "Ignore tests on big function types until master is 1.3"
...
This reverts commit f03dc62173 .
2018-08-30 14:52:38 +03:00
Alexander Udalov
51979b9ffa
Convert FunctionBase to Kotlin, add type parameter to Lambda
...
This will make it possible to avoid raw types when inheriting from both
FunctionBase and Function<R>. This change adds a generic type parameter
to FunctionBase and Lambda which is not source-breaking under our policy
because both FunctionBase and Lambda are internal classes (located in
package kotlin.jvm.internal)
2018-08-30 14:52:33 +03:00
Ilya Gorbunov
07a0cb91d4
Introduce Char.MIN_VALUE and MAX_VALUE constants (KT-21763)
...
Add Char.MIN_VALUE and Char.MAX_VALUE implementations in primitive companion objects.
Update builtins test data and public API.
Co-authored-by: Oskar Drozda <themppsplx@gmail.com >
2018-08-30 14:51:14 +03:00
Ilya Gorbunov
0c50014e7a
Introduce SIZE_BYTES and SIZE_BITS constants for all integral types
...
#KT-8247 Fixed
2018-08-30 14:51:10 +03:00
Ilya Gorbunov
31d7aae98d
Annotate companion object declaration with SinceKotlin
...
Move it to the end of the class declaration.
Update builtins testdata
2018-08-30 14:51:08 +03:00
Kerooker
af5f78076c
KT-7922 Added Boolean Companion Object
2018-08-30 14:51:04 +03:00
Ilmir Usmanov
9df411481c
Do not coerce function literals to suspend.
...
The design is to use `suspend fun` instead of coercion, just as suspend
lambdas.
However, this syntax is not supported in the parser. But this is not a
problem, since the coercion lead to internal compiler error.
As a workaround everybody uses suspend lambdas.
#KT-24860: Fixed
2018-08-30 14:50:33 +03:00
Alexander Udalov
f423403167
Make kotlin.Metadata public
...
Prohibit explicit usage of `@Metadata` to prevent possible
AnnotationFormatError at runtime
#KT-23602 Fixed
2018-08-30 14:50:25 +03:00
Ilya Gorbunov
0f5f90cf52
Advance project version to 1.3-SNAPSHOT
...
Set LATEST_STABLE language version and current version of stdlib to 1.3, set IS_PRE_RELEASE
Remove "EXPERIMENTAL" from 1.3 version description in tests and gradle options
2018-08-30 14:49:27 +03:00
Denis Vnukov
ddf92ef187
Creating IrLineNumberTestGenerated, adding line numbers for few common expressions
...
This PR enables LineNumberTestGenerated test on IR backend. The testing of
hardcoded sequence of line numbers is replaced with mere checks for set-like
checks for expected line numbers.
2018-08-29 12:52:20 +02:00
Zalim Bashorov
b2d9254bfd
Fix testdata
2018-08-28 16:30:15 +03:00
Pavel Punegov
1ea9c2d4ba
Replace min with coerceAtMost in test
2018-08-28 13:48:44 +03:00
Pavel Punegov
1c5ebacf0f
Disable 1.3 version coroutines in Native and incorrect genericProperty test
2018-08-28 13:48:44 +03:00
Pavel Punegov
9eb78fc490
Disable tests that fail in NATIVE
2018-08-28 13:48:44 +03:00
Pavel Punegov
39a65a099a
Disable IEEE754 tests with improper comparisons behaviour in Native
2018-08-28 13:48:44 +03:00
Pavel Punegov
1a7d366733
Disable JVM tests in native
2018-08-28 13:48:44 +03:00
Pavel Punegov
0c8f34a934
Disable JVM assertions in native
2018-08-28 13:48:44 +03:00
Pavel Punegov
2ff6047845
Update ignore tag for Native backend
2018-08-28 13:48:43 +03:00
Mikhael Bogdanov
ca5b19d0c6
Merge Java 8 write signature tests in common ones
2018-08-27 15:55:03 +02:00
Mikhael Bogdanov
efd93670f8
Migrate AbstractWriteSignatureTest.kt to CodegenTestCase stuff
2018-08-27 15:17:25 +02:00
Mikhail Zarechenskiy
3f79a752a5
Check for accessibility of unsigned types when using unsigned literals
2018-08-27 15:16:14 +03:00
Mikhail Zarechenskiy
4067d6b196
[NI] Fix overload resolution ambiguity for incorrect provideDelegate
...
#KT-25810
2018-08-27 13:49:19 +03:00
Mikhael Bogdanov
232170b72a
Migrate AbstractIrCheckLocalVariablesTableTest to CodegenTestCase stuff
2018-08-24 20:17:18 +02:00