Anton Bannykh
385a02ea55
Added forgotten kt8666.txt for LightAnalysisModeCodegenTestGenerated
2017-02-01 18:20:30 +03:00
Dmitry Petrov
7600f89f0b
KT-15574 Can't instantiate Array through Type Alias
...
Array instatiation code should handle type alias constructors properly.
So far, we don't have constructors with type parameters
different from the type parameters of the resulting type,
so we can safely take type arguments of the underlying type.
2017-02-01 17:14:50 +03:00
Anton Bannykh
f5a431490c
JS: verified that String concatenation with large Long's is fixed (KT-8666)
2017-02-01 15:36:02 +03:00
Denis Zharkov
e9262b875b
Implement makeNullableAsSpecified for TypeTemplate properly
...
This change fixes an SOE in isCastErased:
@JvmStatic
fun isCastErased(supertype: KotlinType, subtype: KotlinType, typeChecker: KotlinTypeChecker): Boolean {
if (supertype.isMarkedNullable || subtype.isMarkedNullable) {
return isCastErased(TypeUtils.makeNotNullable(supertype), TypeUtils.makeNotNullable(subtype), typeChecker)
}
TypeUtils.makeNotNullable(TypeTemplate) should not return the same object
if isMarkedNullable returned true on the instance
#KT-15516 Fixed
2017-02-01 11:51:15 +03:00
Alexander Udalov
464820458e
JS: rename "-library-files" argument to "-libraries" and change separator
...
Use the system separator (':' or ';') instead of commas
#KT-16083 Fixed
2017-01-31 16:26:35 +03:00
Denis Zharkov
39fc1789e0
Prohibit inline lambda parameters of suspend function type
...
#KT-16068 Fixed
2017-01-31 14:55:48 +03:00
Mikhail Zarechenskiy
f3385e093e
Introduce language feature for type inference on generics for callable references
...
#KT-16061 Fixed
2017-01-31 01:15:02 +03:00
Alexander Udalov
8811165de8
Report error on callable reference or class literal with "-no-stdlib"
...
Also workaround the NoSuchElementException that was happening because error
type never has any type arguments
#KT-14547 Fixed
2017-01-30 20:27:17 +03:00
Ilya Gorbunov
38b79a51d5
Fix tests after introducing exlcusions to default imports of kotlin.js package.
2017-01-30 19:44:51 +03:00
Ilya Gorbunov
f4ef98c327
Remove test for named native
2017-01-30 19:21:41 +03:00
Ilya Gorbunov
c4a0bb727d
Change LoadBuiltinsTest testData, add runtime and import to box tests.
...
#KT-16030
2017-01-30 18:55:05 +03:00
Alexey Andreev
06e8f7b328
JS: don't report error when FAKE function overrides external function with optional parameters. Report only when it overrides at least two such functions. See KT-15961
2017-01-30 17:26:07 +03:00
Denis Zharkov
b0ebbe99d6
Fix coroutine-related VerifyError
...
The problem was that we spilled the `origin` variable (see test) as Object, because
we determined the type of merge(null, String) incorrectly.
#KT-15973 Fixed
2017-01-30 15:45:02 +03:00
Alexander Udalov
e5680565b3
JS: drop "-kjsm" flag, merge logic with "-meta-info"
...
#KT-16049 Fixed
2017-01-30 11:31:03 +03:00
Alexander Udalov
ef42e3e4aa
JS: write full version (major.minor.patch) to .meta.js
2017-01-30 11:31:02 +03:00
Zalim Bashorov
29ac01f2e2
KJS: allow to use packages with names starting with "kotlin" only if the -Xallow-kotlin-package command line option is specified
...
#KT-14668 Fixed
2017-01-29 17:21:01 +03:00
Stanislav Erokhin
6ef96017e8
Mute test and create issue KT-15972.
2017-01-28 03:25:47 +03:00
Stanislav Erokhin
b033ad1b2b
Add positioning strategy DECLARATION_NAME for DELEGATED_MEMBER_HIDES_SUPERTYPE_OVERRIDE.
2017-01-28 03:25:44 +03:00
Stanislav Erokhin
2aa2df75ae
Make property java available on KClass<T> where T is type parameter without upper bounds.
2017-01-28 03:25:43 +03:00
Mikhail Glukhikh
d8a4a32e9f
Do not report UNUSED_PARAMETER in function literal for 1.0 compatibility mode #KT-16010 Fixed
2017-01-27 23:39:08 +03:00
Denis Zharkov
c362a9154b
Rename SUSPENDED_MARKER to COROUTINE_SUSPENDED
2017-01-27 23:24:13 +03:00
Denis Zharkov
35e9f0a89a
Update a test result temporary
...
Currently common stdlib doesn't contain Continuation interface
2017-01-27 23:24:13 +03:00
Denis Zharkov
68fc6fa217
Support non-CoroutineImpl instances in createCoroutine
2017-01-27 23:24:13 +03:00
Denis Zharkov
463af85f78
Minor. Update light-classes test data after coroutine-related changes
2017-01-27 23:24:13 +03:00
Denis Zharkov
1d5144b168
Move coroutine-related diagnostic tests to run them with stdlib
...
It's necessary because all coroutine related declarations (Continuation, etc)
are now in the stdlib
2017-01-27 23:24:13 +03:00
Denis Zharkov
8fa8ba7055
Move coroutine-related runtime parts to kotlin.coroutines.experimental package
...
#KT-15975 Fixed
2017-01-27 23:24:13 +03:00
Denis Zharkov
0e132b9857
Move all coroutine-related declarations from built-ins to stdlib
...
Also move internal declarations from runtime.jvm module into new package
kotlin.coroutines.jvm.internal in stdlib
The necessity of these declarations being in built-ins is controversial,
but also it will complicate the migration of current coroutine runtime
to a separate jar if we ever need this
2017-01-27 23:24:13 +03:00
Mikhael Bogdanov
456037a30d
Generate proper annotaions on parameters for @JvmOverloads;
...
Fix for KT-15743: Overloaded Kotlin extensions annotates wrong parameters in java
#KT-15743 Fixed
2017-01-27 14:09:13 +01:00
Mikhael Bogdanov
ab464ea86e
Fix for KT-15726: Kotlin can't compile nested try-catch with return
...
#KT-15726 Fixed
2017-01-27 14:09:13 +01:00
Dmitry Petrov
de14d4abc8
KT-15748 Type alias constructor return type should have a corresponding abbreviation
2017-01-27 15:16:04 +03:00
Dmitry Petrov
e05f2eaff6
KT-15017 Throwing exception in the end of inline suspend-functions lead to internal compiler error
...
Suspend function call with a reachable (alive) begin marker and unreachable (dead) end marker
is an exit point for the corresponding coroutine.
It isn't a suspension point, and doesn't introduce a new state in the coroutine FSM.
2017-01-27 10:43:00 +03:00
Ilya Gorbunov
3be1174824
Replace @native with external in tests
2017-01-27 01:29:15 +03:00
Mikhael Bogdanov
25d75bcd8b
Delegates to java defaults methods in compatibility mode
2017-01-26 14:32:33 +01:00
Mikhael Bogdanov
0006a04b01
Report warning on hided override by delegation when compile to 1.0 version
2017-01-26 14:32:33 +01:00
Dmitry Petrov
1613ad0505
KT-15898 Cannot use type alias to qualify enum entry
...
Type alias static scope includes enum entries for underlying enum class.
2017-01-26 10:23:56 +03:00
Dmitry Petrov
a974ed1049
Support custom accessors for top-level properties in scripts.
2017-01-26 10:12:13 +03:00
Dmitry Petrov
ab2448307e
Functions imported from objects should be properly mapped to "real" suspend function descriptors.
2017-01-26 09:39:53 +03:00
Dmitry Petrov
9d4047f5e4
Calls for suspend functions imported from object should be checked in CoroutineSuspendCallChecker.
2017-01-26 09:39:53 +03:00
Mikhail Zarechenskiy
b0c3c7463b
Fix internal compiler error about arithmetic exception
...
#KT-8264 Fixed
2017-01-26 03:39:50 +03:00
Alexey Andreev
1c8478e46b
JS: fix translation of enum entries without parentheses that call secondary constructors, constructors with default parameters and varargs. See KT-15900, KT-14097
2017-01-25 18:09:23 +03:00
Alexey Andreev
0f87320f9e
JS: regenerate test data
2017-01-25 18:09:23 +03:00
Alexey Andreev
31c758994d
JS: remove diagnostic about callable reference to built-in
2017-01-25 18:09:22 +03:00
Alexey Andreev
ad4fb44827
JS: report about using of external interfaces in class literals
2017-01-25 18:09:22 +03:00
Alexey Andreev
deaac83e70
JS: report about wrong module usage in class literals. See KT-15253
2017-01-25 18:09:21 +03:00
Alexey Andreev
9000d54d8a
JS: when checking calls to JsModule declarations, check arguments passed to reified type parameters. See KT-15253
2017-01-25 18:09:20 +03:00
Mikhael Bogdanov
4c7a07bed6
Optimize defaults format: avoid reduntant stack normalization operations
2017-01-25 15:56:56 +01:00
Mikhael Bogdanov
fc4be17623
Fix for KT-14966: Regression: VerifyError on access super implementation from delegate
...
#KT-14966 Fixed
2017-01-25 15:56:55 +01:00
Mikhael Bogdanov
11578c602e
Added inline tests for jvm 8 target
2017-01-25 15:56:55 +01:00
Ilya Chernikov
e3338c1e31
Fix testdata
2017-01-25 15:29:15 +01:00
Denis Zharkov
9ce3880ac6
Support getValue/setValue/provideDelegate suspend functions in JVM backend
...
- Determine if there are non-tail calls to getValue/setValue simply
by existance of such a property
(it might be too strict, but implementing more granular check may be rather hard)
- Change in ExpressionCodegen is relevant for provideDelegate,
that in case of local variables uses OnStack as StackValue
(see the comment near these changes)
#KT-15933 Fixed
2017-01-25 13:54:01 +03:00