sebastian.sellmair
f893709e5b
[Commonizer] CommonizeLibcurlTest: Add commonizeSuccessfully with unsupported targets
...
This test will assert behaviour on 'unsupported' targets requested from the commonizer
^KT-46077
2021-04-16 14:56:31 +00:00
sebastian.sellmair
bbcfde7231
[Commonizer] Add 'commonizer_target' and 'commonizer_native_targets' to commonized klib's manifest
...
^KT-46077 Fixed
2021-04-16 14:56:31 +00:00
Alexander Likhachev
6f96c225d7
[Gradle, K/N] Prefer injection over lateinit vars for task configuration
...
#KT-45801 Fixed
2021-04-16 17:39:53 +03:00
Dmitriy Novozhilov
b530427bb2
Fix substitution of generic types in contracts
...
#KT-41078 Fixed
2021-04-16 17:23:24 +03:00
Dmitriy Novozhilov
91fedd6a12
[FIR] Substitute types from arguments in evaluating of contract
...
#KT-41078
2021-04-16 17:23:22 +03:00
Anton Lakotka
80f95528c2
[MPP] Always use native plugin artifact for native compilations
...
#KT-46122 Fixed
2021-04-16 16:25:06 +03:00
Anton Lakotka
d75d42da9d
[MPP] Test that native common compilation uses native plugin artifacts
...
#KT-46122 In Progress
2021-04-16 16:25:04 +03:00
Dmitriy Novozhilov
c65553bb8a
[FIR] Get rid of source element type parameter from diagnostic factories
2021-04-16 14:08:11 +03:00
Dmitriy Novozhilov
4133f38c8c
[FIR] Transform annotations of property receiver type
2021-04-16 11:12:56 +03:00
Dmitriy Novozhilov
564de2790f
[FIR] Resolve array literals in independent context
2021-04-16 11:12:56 +03:00
Dmitriy Novozhilov
cc0f28b698
[FIR] Store type of function call and qualified access from error reference
2021-04-16 11:12:56 +03:00
Dmitriy Novozhilov
e869f8091a
[FIR] Properly handle callable references which were resolved with error
2021-04-16 11:12:55 +03:00
Dmitriy Novozhilov
450fb5e915
[Test] Add handler to detect implicit types which were left in resolved FIR
2021-04-16 10:52:58 +03:00
Ilya Gorbunov
ce7092a638
More efficient Char(Int) in common, JS, and JS-IR
2021-04-16 03:58:34 +03:00
Ilya Gorbunov
8041c3aa1d
Support Char.code in constant evaluator, KT-46036
...
But do not consider Char.code a pure integer constant.
2021-04-16 03:58:34 +03:00
Alexander Udalov
0a446230f7
Reorder LanguageFeature entries according to sinceVersion
2021-04-15 21:41:17 +02:00
Alexander Udalov
168d8b07a8
Minor, fix warnings on new stdlib API
...
In modules where allWarningsAsErrors is not yet enabled.
2021-04-15 18:39:06 +02:00
Dmitry Petrov
e89ab71bf8
JVM_IR KT-45934 don't generate declaration stubs for delegates
2021-04-15 17:59:19 +03:00
Dmitry Petrov
cc415f62b5
JVM_IR KT-46092 fix array spread operator in Kotlin->Java call
2021-04-15 17:11:21 +03:00
Pavel Punegov
b5fae96934
[native][tests] Fix incorrect enum in ExecutorService
2021-04-15 16:54:25 +03:00
Pavel Punegov
5903d015b8
[native][tests] Change architecture requirements in simulator executor
...
This requirement doesn't work for watchos_x86 on macos_x64 so create
a list of compatible requirements.
2021-04-15 13:34:00 +00:00
Mikhail Glukhikh
9b3f1b9b8a
Inference: handle Exact constraints with captured types properly
...
#KT-41818 Fixed
2021-04-15 15:55:41 +03:00
Mikhail Glukhikh
51d348d5fa
FIR: report FUN_INTERFACE_CONSTRUCTOR_REFERENCE on deserialized properly
...
This fixes KT-46100 for FIR
2021-04-15 15:54:18 +03:00
Ilya Kirillov
676e29e96e
fix up: do not read declaration phase without read lock hold
2021-04-15 15:24:04 +03:00
Ilya Kirillov
d7e3c65c45
FIR: add renderDeclarationOrigin to FirRender
2021-04-15 15:24:02 +03:00
Ilya Kirillov
0e98480be3
FIR: update resolve phase for declaration when visiting with FirContractResolveTransformer
2021-04-15 15:24:01 +03:00
Ilya Kirillov
5de4c5fc28
FIR: allow declaring specific set of parameters for FirRenderer
2021-04-15 15:24:00 +03:00
Ilya Kirillov
fee83051e9
FIR: encapsulate creating of cli-only session components into single function
2021-04-15 15:23:59 +03:00
Ilya Kirillov
0a80fbb078
FIR IDE: do not read declaration phase without read lock hold
2021-04-15 15:23:57 +03:00
Ilya Kirillov
0cf00d0f72
FIR: fix FirDefaultPropertyAccessor phase to BODY_RESOLVE
2021-04-15 15:23:56 +03:00
Ilya Kirillov
39b2cd1027
FIR: do not provide symbols with different ClassId in JavaSymbolProvider
...
JavaSymbolProvider uses KotlinPsiElementFinderWrapper for finding classes.
CliFinder looks for Java classing assuming that class with ClassId=a/b/C
lives in directory a/b and do not look into real package name of Java class.
This causes that we may find some classes which we should not see from current scope.
Also, the IDE implementation works correctly here (it also checks file package)
which cause different behaviour of FIR IDE and FIR
This change also requires to fix testdata and make Java classes live
in directory consistent with file package
2021-04-15 15:23:53 +03:00
pyos
82cadba80b
FIR: report errors on FirResolvedTypeRef with ConeClassErrorType
...
Not sure what the difference from FirErrorTypeRef is.
2021-04-15 14:59:30 +03:00
pyos
474d1d48f7
FIR: allow fun T.() = ... as an instance of (T) -> ...
...
It was already done by the previous commit by mistake, but it broke if
there are other value parameters because the type of the first parameter
would be inferred to be same as the type of the receiver.
2021-04-15 14:59:29 +03:00
pyos
0a25550fc2
FIR: allow fun (x: T) ... as an instance of T.() -> ...
...
and disallow > 1 implicit parameters in lambdas.
2021-04-15 14:59:28 +03:00
pyos
354acc1fd5
FIR: permit * as FunctionN type argument
...
`() -> *` is not valid, but `F<*>` where `typealias F<T> = () -> T` is.
2021-04-15 14:59:27 +03:00
Denis.Zharkov
32dacc37c0
FIR: Fix OverloadResolutionByLambdaReturnType case
2021-04-15 14:48:20 +03:00
Ilmir Usmanov
1c48fb28db
Generate return when generating continuation class for expression body
...
Otherwise, the function will return Unit instead of correct value.
#KT-46007 Fixed
2021-04-15 13:54:45 +03:00
Simon Ogorodnik
539d3e5df2
Add full-pipeline modularized tests for old frontend
2021-04-15 13:36:00 +03:00
Ivan Gavrilovic
11b92bc597
[Gradle] Fix init script for coroutines
...
Use doFirst instead of beforeTask to add javaagent args for coroutines debugging.
2021-04-15 12:39:25 +03:00
Andrei Klunnyi
2bb7f6a168
KT-45347 Quickfix to move to sealed parent: do not suggest for binaries
...
^KT-45347 Fixed
2021-04-15 11:17:36 +02:00
Svyatoslav Scherbina
d531df1643
Native: add KotlinThrowable.asError() to the generated Obj-C framework
...
This method can be useful when overriding a throwing Kotlin method in
Swift or Obj-C. In this case, a user can call asError to wrap Kotlin exception
to (NS)Error and then throw it to Kotlin, which will unwrap it back.
^KT-45127 Fixed
2021-04-15 08:21:30 +00:00
Pavel Punegov
c988ecf59b
Ignore test in native backend due to the KT-44037 (KT-38181)
2021-04-15 07:59:26 +00:00
Pavel Punegov
d07c990fc2
Add test to native ignore list due to the KT-44571
2021-04-15 07:59:25 +00:00
Pavel Punegov
0f5edaa02f
Ignore test in the native backend. It redefines JvmInline class
2021-04-15 07:59:24 +00:00
Pavel Punegov
ca4cebf3e3
Exclude test in native backend due to KT-42020.
...
Also return back two tests for fixed KT-42684 and KT-45139
2021-04-15 07:59:23 +00:00
Pavel Punegov
6aa7628808
Fixes to Kotlin/Native test directives infrastructure.
...
* parse files and modules separately
* fix default and support modules usage
* add another way to ignore backend (new directive)
* add new test to exclude list
2021-04-15 07:59:22 +00:00
Alexander Gorshenev
7d13aaad24
Native klib testing: a binary compatibility tweak.
...
Link versioned libraries against dependencies of the same version.
2021-04-15 07:59:21 +00:00
Tianyu Geng
4d2e3a2379
FIR: Fix resolving += to ignore + if it doesn't return correct type
...
This is the FIR fix of the FE change tracked by
https://youtrack.jetbrains.com/issue/KT-45503
Consider the following code:
```
fun foo() {
var l = mutableListOf("")
l += ""
}
```
The above code used to be considered invalid due to ambiguous `+=`. But
after KT-45503, it's now considered valid code because `plus` is not
really a valid option for this code. This is because the return type
of `plus` for `List` is `List`, which does not match the type of
variable `l`.
As for now, FIR rejects the above code due to ambiguous `+=`. This
change fixes that by also consider the return type when resolving `+=`.
2021-04-15 10:34:05 +03:00
Tianyu Geng
c43faa2ada
FIR: refactor FirExpressionsResolveTransformer#transformAssignmentOperatorStatement
...
No logic change. This commit only rearrange stuff to make it cleaner
2021-04-15 10:34:04 +03:00
Dmitriy Novozhilov
861f69822b
[FIR] Fix infinite recursion of ConeDefinitelyNotNullType
2021-04-15 10:30:29 +03:00