Dmitry Petrov
8ce1d09f8a
Fix inline class coercion in default parameter values
...
#KT-27358
2018-10-15 12:21:14 +03:00
Svyatoslav Kuzmich
02277d0293
[JS IR BE] ExpectDeclarationsRemoving lowering
...
* Copy lowering from konan to common
* Keep actual default parameters when both actual and expect default parameters are present
* Run lowering before inline in JS IR BE to fix
box/multiplatform/defaultArguments/inlineFunctionWithDefaultLambda.kt
2018-10-15 00:03:46 +03:00
Svyatoslav Kuzmich
4c38d55f21
[JS IR BE] Unmute tests
2018-10-15 00:03:45 +03:00
Svyatoslav Kuzmich
bad9534abd
[JS IR BE] Support integer operation overflow
2018-10-14 23:53:02 +03:00
Zalim Bashorov
8013a56286
[JS IR BE] process empty loops correctly in BlockDecomposerLowering
2018-10-13 01:51:59 +03:00
Zalim Bashorov
6d592ae66b
Unmute tests
2018-10-13 01:51:59 +03:00
Zalim Bashorov
dfc3bda3b4
Minor: remove forgotten "TODO"
2018-10-13 01:51:58 +03:00
Ilmir Usmanov
a5bcd3495e
Simplify tail-call optimisation check
...
Check, that all suspension points are immediately followed by ARETURN
and do not check that all these ARETURNs are immediately preceded by
suspension points.
#KT-27190 Fixed
2018-10-12 15:10:12 +03:00
Mikhail Zarechenskiy
b7d7d1eb01
Fix inline class type coercion in == with generic call
...
#KT-27393 Fixed
2018-10-12 12:50:49 +03:00
Mikhail Zarechenskiy
0201694f84
Propagate KotlinType into create method for coroutines
...
#KT-27526 Fixed
2018-10-12 12:50:47 +03:00
Mikhail Zarechenskiy
a8abd8cceb
Fix boxing/unboxing for generic functions on index expressions
...
Unsubstituted type should be used for coercion to box value of
inline class type if it's needed. For the substituted value it's not
known if it was a generic parameter or not.
#KT-27502 Fixed
2018-10-12 11:58:56 +03:00
Svyatoslav Kuzmich
7074909230
[JS IR BE] Support enumValues<T>() and enumValueOf<T>(name)
2018-10-10 19:35:17 +03:00
Svyatoslav Kuzmich
bdc3daf972
[JS IR BE] Support Enum::values
2018-10-10 19:35:17 +03:00
Pavel Punegov
17b7bbce8c
Make coroutines test JVM-only
2018-10-10 19:04:31 +03:00
Pavel Punegov
3dd16da315
Fix vararg test for native that assigns named argument.
...
Ignore test that uses nested class in enum in native
2018-10-10 19:03:56 +03:00
Pavel Punegov
dd1c9fa9f0
Native: Ignore tests that use reflection not implemented in native
2018-10-10 19:01:35 +03:00
Pavel Punegov
82b59c5044
Native: Ignore tests that use jvm or full reflect
2018-10-10 19:00:50 +03:00
Svyatoslav Kuzmich
89f7ced0d4
[JS IR BE] Unmute tests
2018-10-10 17:27:37 +03:00
Svyatoslav Kuzmich
749556f565
[JS IR BE] Support Long coercion
2018-10-10 17:27:37 +03:00
Svyatoslav Kuzmich
c7bde6a5e6
[JS IR BE] Fix runtime compareTo(Number, Long)
2018-10-10 17:27:36 +03:00
Anton Bannykh
44d56cb278
JS: fix val with backing field initialization in secondary constructors
...
This change reverts the AssignmentTranslator logic to a previous state
of "if we assign to a val, tranlate to backing field". Previously a
check whether or not we are inside of a constructor was added. The
check didn't detect secondary constructors, hence initializing of
val's with backing field started to work incorrectly.
The check itself was added in an attempt to prevent augmented assignment
operators to reference the backing field. The check seems to have been
wrong, because an augmented assignment could happen inside a construcotr.
A more correct fix was added later. It seems that it is safe now to
revert the logic back and rely on the frontend to only allow assignment
to a val property during initilization.
2018-10-10 17:25:55 +03:00
Anton Bannykh
8c6337f3f6
[JS IR BE]: support dynamic_var["foo"] = "bar"
...
Used EQ origin to detect. Added a test to check dynamic_var = "bar" case
is not affected
2018-10-10 13:43:22 +03:00
Anton Bannykh
7afb81a7df
JVM_IR: fix ranges' test generator
2018-10-10 13:13:36 +03:00
romanart
d77a0f109b
Update tests
2018-10-09 15:33:04 +03:00
Dmitry Petrov
b55b0c1ff1
Support local property delegation to inline class values
...
Also, add extra test on property delegation.
2018-10-03 11:09:48 +03:00
Dmitry Petrov
6fa436911a
Support interface delegation to inline class values (KT-27318)
2018-10-03 11:09:47 +03:00
Dmitry Petrov
5480bf69e8
Support property delegation to inline class values (KT-27070)
2018-10-03 11:09:46 +03:00
Dmitry Petrov
70e60ea9bc
Fix inline class coercion in string template with StringBuilder.append
...
Inline class values with array as a carrier type were not boxed.
#KT-27113
2018-10-03 11:09:41 +03:00
Dmitry Petrov
813e4c966a
Update testData for constant initializers in IR
2018-10-02 17:08:55 +03:00
Alexander Udalov
712c9cbfe6
Minor, mute legacyModOperator.kt for JVM_IR
2018-10-01 16:17:14 +02:00
Alexander Udalov
04ba1cff05
Minor, unmute bothInExpectAndActual.kt for JS_IR
2018-10-01 16:17:14 +02:00
Georgy Bronnikov
ade640eadb
JVM_IR. Support compile time constants
2018-10-01 12:25:55 +03:00
Svyatoslav Kuzmich
334c776b92
[JS IR BE] Fix @DoNotIntrinsify processing. Reuse it for compareTo
2018-09-28 20:27:01 +03:00
Pavel Punegov
7c2c4e68ce
Ignore 2 tests in Native: default arguments got from expect declarations there
2018-09-28 14:22:27 +03:00
Dmitry Petrov
7b7cf39388
Fix inline classes coercion in 'if' expression
...
#KT-27132
2018-09-28 10:46:42 +03:00
Dmitry Petrov
ab90b2b901
Fix nullability propagation in inline class type mapping
...
#KT-27096
See https://jetbrains.slack.com/archives/C06E082M6/p1537949572000100
2018-09-28 10:46:42 +03:00
Dmitry Petrov
0b23ddb947
Add test for KT-27140
2018-09-28 10:46:42 +03:00
Dmitry Petrov
7624dbbb20
Fix subject variable handling in specialized enum codegen
...
#KT-27161
2018-09-27 10:48:35 +03:00
Dmitry Petrov
0dd04c3424
Postpone companion object field visibility
...
Have to reconsider this issue because of interface companion objects.
2018-09-27 10:35:23 +03:00
Dmitry Petrov
792ff3c39e
Generate private interface companion object as package-private synthetic
2018-09-27 10:35:23 +03:00
Dmitry Petrov
7949ac1080
Use common instance receiver generation logic for 'this' expression
...
Otherwise it would skip private companion object accessor generation.
2018-09-27 10:35:23 +03:00
Dmitry Petrov
ba32ed7404
Test: @JvmField in inline class companion
2018-09-25 11:15:29 +03:00
Dmitry Petrov
bffe9e45e8
Add accessor tests: inline class <-> companion
...
KT-26858 was fixed somewhere in the middle.
#KT26858
2018-09-25 11:15:29 +03:00
Dmitry Petrov
850d72f13f
Fix accessor generation for inline class members
...
TODO 'generateMethodCallTo' is a bloody mess that deserves rewriting.
2018-09-25 11:15:29 +03:00
Dmitry Petrov
edc8cf3ed0
Use proper type for context 'this'
...
Bug in 'generateThisOrOuterFromContext', it worked while instance of a
class was always an object.
#KT-27078
2018-09-25 11:15:29 +03:00
Dmitry Petrov
c1bb3479df
More tests on casts on receiver of inline class type
2018-09-25 11:15:29 +03:00
Dmitry Petrov
88cc900dc7
Add test for private inline class method call from inline lambda
2018-09-25 11:15:29 +03:00
Dmitry Petrov
2e6d53a43f
Fix extension receiver coercion for inline classes
...
#KT-27031
2018-09-25 11:15:29 +03:00
Dmitry Petrov
20d7210239
Fix outer class mapping for closures in inline class
...
#KT-27030
#KT-27033
2018-09-25 11:15:29 +03:00
Dmitry Petrov
26602c8443
Minor: move tests
2018-09-25 11:15:29 +03:00