Dmitry Petrov
8ede477f99
KT-28585 Fix boxing for values of captured vars of inline class type
2018-12-10 14:57:09 +03:00
Dmitry Petrov
45035d3e11
KT-28405 Fix toString for inline classes with underlying arrays
2018-12-10 14:57:09 +03:00
Mikhail Zarechenskiy
b48614df47
Add test for class literals on inline classes
...
#KT-28361 Obsolete
2018-11-22 18:10:41 +03:00
Dmitry Petrov
90da274eaa
KT-28054: Treat inline class constructor accessors specially
2018-11-19 09:42:03 +03:00
Mikhail Zarechenskiy
3a93cab3b6
Mark JVM specific test with TARGET_BACKEND directive
...
This is needed to avoid test failing for Kotlin/Native
2018-11-17 22:55:18 +03:00
Mikhail Zarechenskiy
090d3327c0
Use wrapper class of an inline one as a result for javaClass
...
#KT-28185 Fixed
#KT-28246 Open
2018-11-16 00:55:01 +03:00
Mikhail Zarechenskiy
35fb3ba096
Fix CCE when unboxed inline class receiver is passed to inline function
...
Initial problem is started in `capturedBoundReferenceReceiver` method
where we assume that bound receiver is captured for usual call.
Note that if method is inline then we don't pass actual name reference
receiver, but pass special CAPTURED_RECEIVER_FIELD, which is then
is used to find special instructions during inline and fold several
instructions in `foldFieldAccessChainIfNeeded`.
As a result, we got unboxed reference receiver for inline call, which
caused CCE and to fix it we should box receiver one more time during
inline
#KT-28188 Fixed
2018-11-14 11:21:04 +03:00
Mikhail Zarechenskiy
79159947a5
Coerce last value of delegated expression for inline classes
...
Note that this commit doesn't fix case when some inline class over
`Any` is returned from a lambda, it'll be fixed further as part of the
#KT-27586
#KT-27737 Fixed
2018-11-12 14:21:24 +03:00
Mikhail Zarechenskiy
20ff74a726
Fix mapping for inline classes when JvmSuppressWildcards mode is using
...
#KT-28097 Fixed
2018-11-12 09:36:05 +03:00
Svyatoslav Kuzmich
5ea7673950
[JS IR BE] Mute inline class tests
2018-11-08 15:00:32 +03:00
Svyatoslav Kuzmich
43b4b6eaae
Add more specific fail messages in inline class box tests
2018-11-08 15:00:31 +03:00
Georgy Bronnikov
c20f93ddbf
Mute failing test
2018-11-07 19:09:15 +03:00
Dmitry Petrov
ac7cc0c08e
KT-27706: Dispatch receiver type for constructor accessor is Object
2018-11-07 18:17:29 +03:00
Dmitry Petrov
ea4afdaebe
KT-27705: Use proper types for captured outer class instance
...
Call typeMapper only if we have an inline class.
2018-11-07 18:17:29 +03:00
Pavel Punegov
4d5b00d3e3
Ignore test in native: uses Array.fill
2018-10-26 11:33:14 +03:00
Pavel Punegov
0bdbcbc662
Ignore the test that uses JVM functions and String constructor
2018-10-18 16:08:38 +03:00
Anton Bannykh
3a105debb3
[JS IR BE] fix default arguments lowering
2018-10-18 14:25:48 +03:00
Dmitry Petrov
b13d270d77
Test: reference to constructor with inline class parameters
2018-10-17 16:38:22 +03:00
Dmitry Petrov
0af2a0dc19
Tests: references to private/internal primary val of inline class
2018-10-17 16:38:22 +03:00
Dmitry Petrov
3dc4d01adc
Tests for callable references and inline classes
2018-10-17 16:38:22 +03:00
Pavel Punegov
8ea8acc7f7
Set target backend to JVM for tests that have @JvmStatic annotations
2018-10-15 19:25:03 +03:00
Pavel Punegov
d9a8a00069
Make tests that use jvm-annotations be targeted to jvm backend
2018-10-15 19:25:02 +03:00
Dmitry Petrov
b6be72bb11
Add more tests for inline classes
...
#KT-27416
#KT-27513
2018-10-15 12:21:14 +03:00
Dmitry Petrov
0fd68d29f4
Support @JvmStatic in inline class companion object
...
#KT-27107
2018-10-15 12:21:14 +03:00
Dmitry Petrov
5304754e88
Generate specialized 'toString' for inline classes when possible
...
#KT-25613
2018-10-15 12:21:14 +03:00
Dmitry Petrov
f68ce4b35b
Support default parameter values for inline class constructors and funs
...
#KT-26908
#KT-26554
Move default parameter value tests to separate directory
2018-10-15 12:21:14 +03:00
Dmitry Petrov
8ce1d09f8a
Fix inline class coercion in default parameter values
...
#KT-27358
2018-10-15 12:21:14 +03:00
Svyatoslav Kuzmich
4c38d55f21
[JS IR BE] Unmute tests
2018-10-15 00:03:45 +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
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
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
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
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
Dmitry Petrov
f9a419f940
Fix companion method access from inline class
...
#KT-27025
2018-09-25 11:15:29 +03:00