Georgy Bronnikov
db19a6e150
Make @JvmOverloads work with JVM_IR
2018-07-19 18:36:37 +03:00
Ilmir Usmanov
0ed5ec868c
Generate probeCoroutineSuspended call in suspendCoroutineUninterceptedOrReturn
...
#KT-25508: Fixed
2018-07-19 14:24:09 +03:00
Alexander Udalov
1464a4ac58
Load Java parameter names correctly in BinaryJavaMethod
...
PSI-based implementation (accessible via
`-Xuse-old-class-files-reading`) loads parameter names from the
"MethodParameters" attribute if it's present, so our own implementation
should as well.
This metadata doesn't seem supported in the java.lang.model.element API
though, so SymbolBasedValueParameter (which is used in `-Xuse-javac`)
will continue to have incorrect behavior for now
#KT-25193 Fixed
2018-07-18 18:15:09 +02:00
Alexander Udalov
0f0602230a
Fix parameter names of Java inner classes in reflection
...
#KT-25541 Fixed
2018-07-18 18:15:09 +02:00
Alexander Udalov
873e1b01d6
Merge and improve tests on Java parameter metadata in reflection
2018-07-18 18:15:08 +02:00
Dmitry Petrov
82f22f92ca
Don't generate ConstantValue for non-const vals in Kotlin 1.3+
2018-07-18 15:02:54 +03:00
Alexander Udalov
79c2aa4acf
Minor, move tests on JvmField into subdirectory
2018-07-18 13:24:45 +02:00
Mikhael Bogdanov
bca6b98ea8
Fix test data
2018-07-18 08:41:48 +02:00
Mikhail Zarechenskiy
bb575866cb
Pass actual invoke parameters for inline functions with inline classes
...
#KT-25511 Fixed
2018-07-17 23:39:38 +03:00
Mikhail Zarechenskiy
77959247d2
Fix bridge generation for inline classes over Any type
2018-07-17 23:39:34 +03:00
Svyatoslav Kuzmich
1abb4f42ac
[JS IR BE] Add ranges to runtime, rangeTo for primitive numbers
2018-07-17 20:18:29 +03:00
Mikhael Bogdanov
52b261e19e
Fix test data
2018-07-17 13:30:43 +02:00
Mikhail Zarechenskiy
b6db8971e4
Warn about annotations that targets non-existing accessors
...
#KT-15453 In Progress
2018-07-17 00:22:53 +03:00
Mikhael Bogdanov
1d283d243e
Support @JvmField on interface properties
...
#KT-15807 Fixed
2018-07-16 16:13:15 +02:00
Mikhail Zarechenskiy
857cc0f728
Make tests about mod and varargs valid for 1.3 version
2018-07-16 14:01:59 +03:00
Alexander Udalov
f03dc62173
Ignore tests on big function types until master is 1.3
2018-07-16 11:11:35 +02:00
Alexander Udalov
dcbb8045bd
Disallow function types with big arity on JVM if LV < 1.3 or API < 1.3
...
The implementation is a bit obscure because this worked on JS since
Kotlin 1.0 and we should not break that; however, on JVM, a diagnostic
will be reported with old language/API version
#KT-25241 Fixed
2018-07-16 10:41:27 +02:00
Alexander Udalov
56f509ba09
Support function types with >= 23 parameters
...
See https://github.com/Kotlin/KEEP/issues/107
#KT-13764 Fixed
2018-07-16 10:41:27 +02:00
Zalim Bashorov
74df1208ae
Make "localClassCaptureExtensionReceiver" test more robust and mute it for JS IR BE
2018-07-13 23:42:41 +03:00
Zalim Bashorov
3f0b31dc23
Speed up JS IR BE tests compiling the common parts (runtime + test common utils) once (on demand) and sharing the result between tests
...
It's a temporary hack until we implement IR based library format.
It relies on the fact that currently, IR BE generates stable (enough) names.
2018-07-13 23:42:41 +03:00
Alexander Udalov
66b383349f
Fix regression in reflection on looking up equals/hashCode/toString in interface
...
Caused by 4266e50be8 and 8ccbbf71ec . Previously it worked because we
used hardcoded signatures of equals/hashCode/toString and always looked
them up in java.lang.Object
#KT-25404 Fixed
2018-07-13 18:45:44 +02:00
Georgy Bronnikov
f85030b1e6
Remove a file added by mistake
2018-07-13 16:16:39 +03:00
Mikhail Zarechenskiy
820d168607
First, check for inline class type before boxing
...
The problem was that if `type` is of primitive type, but `KotlinType` is
actually an inline class type, then anyway we boxed this type as primitive
2018-07-13 15:48:21 +03:00
Georgy Bronnikov
8478c73434
Make @JvmStatic work on JVM_IR
2018-07-13 13:43:02 +03:00
Mikhail Zarechenskiy
ef2095e4d3
Mute tests about unsigned types for JS backend
2018-07-13 00:27:12 +03:00
Mikhail Zarechenskiy
4e3674b330
Fix for-in iterator over list of boxed inline class values
...
#KT-25325 Fixed
2018-07-12 18:53:30 +03:00
Mikhail Zarechenskiy
0308e10c11
Fix for-in iterator over array of boxed inline class values
...
#KT-25324 Fixed
2018-07-12 18:53:24 +03:00
Anton Bannykh
d042038045
JS IR: mute tests with language version 1.0
...
Long.rem declaration doesn't compile
2018-07-12 14:18:34 +03:00
Anton Bannykh
cf9ad635e1
JS: add more tests
2018-07-12 14:18:34 +03:00
Anton Bannykh
0579b52d6b
JS: enabled codegen box tests for release coroutines
2018-07-12 14:18:34 +03:00
Mikhael Bogdanov
9cf9cb3ecd
Fix KotlinType building by IrType: don't miss type parameters of outer for inner class
...
#KT-25405 Fixed
2018-07-11 15:12:43 +02:00
Anton Bannykh
9c6452778f
JS IR: unmute tests
2018-07-11 15:25:41 +03:00
Anton Bannykh
ac1a97ad83
JS IR: unmute tests
2018-07-11 14:49:36 +03:00
Ilmir Usmanov
6ba2baa9da
Deserialize constructors and properties with version requirement 1.3
...
if they have suspend function type in their descriptors.
Also, review fixes.
#KT-25256: Fixed
2018-07-11 14:20:46 +03:00
Ilmir Usmanov
c460593b7d
Forbid coroutines in language version is 1.3 and api version is less
2018-07-11 14:20:45 +03:00
Mikhail Zarechenskiy
6b73e528ce
Ignore test for JS IR because of TODO() function
2018-07-11 11:41:24 +03:00
Jake Wharton
2e4f3ced9b
Add nullability annotations to data class equals and toString.
...
KT-22201
2018-07-11 09:37:28 +03:00
Mikhail Zarechenskiy
8d24ca65a3
Propagate KotlinType into when expression codegen
...
This commit removes unneeded boxing when result expression of `when` is
value of inline class type
2018-07-10 23:10:57 +03:00
Svyatoslav Kuzmich
77ad97a39e
[JS IR BE] Bridges construction
2018-07-10 14:11:09 +03:00
Anton Bannykh
07b3b66fd9
JS IR: unmute tests
2018-07-10 13:34:19 +03:00
Ilya Gorbunov
be8cb94105
Add failing tests for overflow in empty progressions KT-24204
2018-07-09 22:08:01 +03:00
Mikhael Bogdanov
66e68fbb53
Generate sam wrappers in inlined lambda in same way as in inline function
...
#KT-24825 Fixed
2018-07-09 15:52:54 +02:00
Denis Zharkov
0b3048f60a
Replace trivial usages of suspendCoroutineOrReturn in tests
...
This is necessary since suspendCoroutineOrReturn gets removed in 1.3
2018-07-09 15:27:19 +03:00
Denis Zharkov
a23ce42c80
Replace a couple of usages of suspendCoroutineOrReturn in tests
2018-07-09 15:27:19 +03:00
Denis Zharkov
e753e0978f
Fix dispatchResume.kt tests after suspendCoroutineOrReturn removal
...
To leave them COMMON_COROUTINES_TEST use suspendCoroutine instead
But, since it requires for continuation to be called externally
the tests are rewritten
2018-07-09 15:27:19 +03:00
Denis Zharkov
8c65e55c02
Fix some of the bytecodeText tests
...
The changes are necessary because of release coroutines support:
- Get rid of suspendCoroutineOrReturn calls. It's anyway irrelevant
to what is being tested here
- In varValueConflictsWithTable.kt, variables slots have been shifted
because the variable for continuation's exception was removed
- In varValueConflictsWithTableSameSort.kt, a variable has been introduced
to preserve the same slot numbers for old variables.
Otherwise, they become shifted and to the second slot,
and there are a lot of irrelevant "ALOAD 2" instructions
This change is another example of why bytecode text tests are evil
2018-07-09 15:27:19 +03:00
Denis Zharkov
820506d9c6
Fix tests after new Continuation API support
...
#KT-24863 Fixed
2018-07-09 15:27:19 +03:00
Denis Zharkov
f23a0c8fea
Add ContinuationAdapter to coroutine tests helpers
...
It allows having the same Continuation implementations for different
API versions
2018-07-09 15:27:19 +03:00
Denis Zharkov
f01e690f49
Minor. Use coroutine test helpers for inline/diagnostics tests
...
It should help with decreasing test data copy-pasting when
testing against release / pre-release coroutines
2018-07-09 15:27:19 +03:00
Ilmir Usmanov
bc8295b137
Minor: regenerate tests
2018-07-05 15:09:13 +03:00