Dmitriy Novozhilov
e83941a98e
[NI] Don't resolve delegates twice
...
#KT-31219 Fixed
#KT-31679 Fixed
#KT-32249 Fixed
2019-12-26 10:54:06 +03:00
Pavel Kirpichenkov
7ee71450bc
[NI] Discriminate Nothing? result type from nullability constraints
...
Nullability constraints should not be chosen when proper
argument constraints for variables in contravariant position present.
^KT-32106 Fixed
^KT-33166 Fixed
2019-12-25 14:59:06 +03:00
Dmitriy Novozhilov
7fed7a840b
[NI] Update some testdata broken in NI
2019-12-20 11:17:47 +03:00
Pavel Kirpichenkov
ebb9f09656
[NI] Fix issues with star projection uncapturing
...
Prevent stack overflow during uncapturing of star projection
for parameter with recursive upper bound.
Uncapture star projections for flexible type parameters with
respect to flexible upper bound.
^KT-35210 Fixed
2019-12-18 16:19:33 +03:00
Pavel Kirpichenkov
86dc0925b1
[NI] Preserve constraint position for OnlyInputType during incorporation
...
Variable with complex dependency on other variable loses its
original constraint position when variable it depends on is fixed.
To prevent that, original input position is saved in incorporation
position.
2019-12-18 16:19:33 +03:00
Pavel Kirpichenkov
2fc79856a2
[NI] Fix OnlyInputTypes for captured types
...
Uncapture projections recursively for cases when captured type is not
top-level type or first level type argument
2019-12-18 16:19:32 +03:00
Dmitriy Novozhilov
2536fa0cd5
[FIR-TEST] Add new testdata generated after changes in previous commit
2019-12-12 16:11:46 +03:00
Pavel Kirpichenkov
afd59f0d46
[NI] Fix 'only input type' check for intersection types
...
Check worked incorrectly in case when argument type and expected type are the
same intersection type, which is possible for local variables without explicit
type declaration.
2019-11-21 15:59:26 +03:00
Mikhail Zarechenskiy
5582fd4056
[NI] Discard DefNotNull types inside invariant positions
...
#KT-30297 Fixed
#KT-32168 Fixed
#KT-27722 Fixed (actually, it was fixed with addition of DefNotNullTypes, and now test was added to save this behavior)
#KT-32345 Fixed
2019-11-06 15:20:17 +03:00
Mikhail Zarechenskiy
6eefea6715
Add tests for obsolete issues
...
#KT-32395 Obsolete (fixed in 42a5c488 )
#KT-32388 Obsolete (fixed in f3e4c9cd )
#KT-32271 Obsolete (fixed in 60a0cf1 )
2019-07-06 10:06:04 +03:00
Mikhail Zarechenskiy
42a5c488c1
[NI] Fix OnlyInputTypes annotation support for top-level captured types
...
#KT-32157 Fixed
#KT-32116 Fixed
#KT-32235 Fixed
#KT-32218 Fixed
2019-07-01 12:59:35 +03:00
Mikhail Zarechenskiy
4ddd9f081b
[NI] Consider explicitly specified type argument as an input type
...
#KT-31860 Fixed
2019-06-07 12:31:42 +03:00
Dmitriy Novozhilov
e574106799
[NI] Support @OnlyInputTypes annotation. #KT-29307 fixed
2019-05-29 10:54:41 +03:00
Dmitriy Novozhilov
0f7e91ff6d
[NI] Update testdata for stdlib diagnostic tests
2019-05-29 10:53:34 +03:00
Dmitriy Novozhilov
139497bafb
[NI] Add checking @NotNull parameters for candidates
2019-05-29 10:53:07 +03:00
Dmitriy Novozhilov
96a3831feb
[NI] Add capturing receiver type for callable references
...
#KT-30292 Fixed
2019-05-16 10:50:30 +03:00
Mikhail Zarechenskiy
516fccbe7b
[NI] Complete call if return type contains only "good" type variables
2019-05-08 12:19:52 +03:00
Mikhail Zarechenskiy
61bd3a8d03
[NI] Complete call if return type has proper lower or equal constraints
...
There was a silly bug: equal constraint is actually a lower and an upper
constraint, but we checked only presence of lower constraints.
Test is important as here we have one equal constraint and should
complete inner call `foo<Int>()` without propagating it to `bar` to
avoid using `NoInfer` annotation multiple times
2019-05-08 12:19:50 +03:00
Mikhail Zarechenskiy
1e3db9ee7c
[NI] Update test data for diagnostic tests
2019-04-25 16:19:37 +03:00
Dmitriy Novozhilov
e70bdb51c5
[NI] Automatically squash equal diagnostics in OI and NI in testdata
2019-04-19 10:53:19 +03:00
Dmitriy Novozhilov
1ac3542036
[NI] Decrease priority of Integer Literal Types in type checking
...
#KT-30446
2019-03-29 11:55:30 +03:00
Dmitriy Novozhilov
d01b6ef900
Revert "[NI] Support @OnlyInputTypes annotation. #KT-29307 fixed"
...
This reverts commit 90628112
With that annotation there is complex bug that breaks build of Kotlin compiler
2019-03-18 18:53:38 +03:00
Dmitriy Novozhilov
9062811231
[NI] Support @OnlyInputTypes annotation. #KT-29307 fixed
...
Also KT-26698 fixed in new inference
2019-03-15 10:39:11 +03:00
Dmitriy Novozhilov
0501a108c0
Fix tests in DiagnosticsTestWithStdLibGenerated with NI
2019-02-01 11:40:20 +03:00
Mikhail Zarechenskiy
66a00f442c
Add tests for obsolete issues
...
#KT-12008 Obsolete
#KT-11881 Obsolete
#KT-10822 Obsolete
2018-09-11 12:34:09 +03:00
Valentin Kipyatkov
ec51076355
DescriptorRenderer to render annotations for all types + separate option to render annotation arguments + use it in IdeDescriptorRenderers
2016-10-11 23:38:54 +03:00
Stanislav Erokhin
01430b4b99
Create hack for exception about "Empty intersection for types".
...
Hackaround for KT-11266, EA-79963, EA-72093, EA-79976.
2016-06-17 01:39:44 +03:00
Alexander Udalov
04026dbe84
Make Array<T>(size, init) a constructor of Array
...
It's not marked as inline, this is why 'crossinline' was added in
jaggedArray.kt/jaggedDeep.kt. Will be fixed in the following commits
2016-01-28 03:10:37 +03:00
Stanislav Erokhin
e53e152f83
Removed hacks for code migration from ConstraintSystemImpl.
2016-01-25 21:53:09 +03:00
Denis Zharkov
4cf1393e81
Minor. Render annotations on type parameters
2016-01-22 19:17:22 +03:00
Ilya Gorbunov
f4822cd757
Fix testData in compiler: add collections and ranges package to fq-names.
2016-01-22 05:54:38 +03:00
Alexander Udalov
239502368a
Update test data for tower resolution algorithm
...
- locals win
- unary calls to plus/minus are not supported in favor of unaryPlus/unaryMinus
- unqualified nested classes are temporarily reported as unresolved
- function without receiver win against extension function
- explicit import win against star import
2015-12-11 17:01:02 +03:00
Stanislav Erokhin
f0cefd5583
Create hacks for magic annotations NoInfer, OnlyInputTypes and LowPriorityInOverloadResolution.
2015-11-25 20:53:39 +03:00
Svetlana Isakova
c167a77c8a
Filter annotations while substituting compound type
2015-10-22 21:55:17 +03:00
Svetlana Isakova
f00af72e0f
Fixed 'OnlyInputTypes' working with platform types
2015-10-22 21:55:16 +03:00
Svetlana Isakova
b24cb2a326
Fixed 'OnlyInputTypes' working with number types
2015-10-22 21:55:14 +03:00
Svetlana Isakova
667f6269e4
Filter internal annotations for resolve in type substitutor
...
to avoid having List<@NoInfer Int> as a result type
of function invocation (the function returns List<@NoInfer T>)
2015-10-19 23:02:03 +03:00
Svetlana Isakova
6ced795db6
Fixed the problem with 'OnlyInputTypes' annotation
2015-10-19 21:35:57 +03:00
Svetlana Isakova
cb34498278
Check nullability in initial constraints
...
except constraints for receiver type (it can be accessed via safe call)
2015-10-19 14:15:06 +03:00
Svetlana Isakova
bb9f7094e0
Report 'TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH'
...
on call element, not on callee expression
2015-10-19 14:15:05 +03:00
Svetlana Isakova
4c85b69c88
Report type inference error
...
when inference failed with 'NoInfer' annotation
2015-10-19 14:15:05 +03:00
Svetlana Isakova
a6ec5cecc0
Added 'OnlyInputTypes' annotation
2015-10-16 21:58:46 +03:00
Svetlana Isakova
9b440345a1
Do not render @NoInfer, @Exact annotations
...
For now they are always not rendered,
but later they should be rendered in descriptors, but omitted in error messages
2015-10-16 21:58:45 +03:00
Svetlana Isakova
566e27788f
Moved @NoInfer, @Exact to internal package
2015-10-16 21:58:44 +03:00
Svetlana Isakova
075a8eaf39
Moved 'Exact' and 'NoInfer' annotations to stdlib
2015-10-13 21:42:54 +03:00
Michael Nedzelsky
bc5c9065d2
fix tests in org.jetbrains.kotlin.checkers
2015-09-08 02:04:32 +03:00
Svetlana Isakova
086e69e132
Added tests for obsolete tasks
2015-07-10 15:05:07 +03:00
Dmitry Jemerov
f374eec8f1
deprecating types after colon
2015-04-29 16:33:24 +02:00
Stanislav Erokhin
43e24f6b0d
Fixed test data for new lambda syntax
2015-03-18 16:06:44 +03:00
Andrey Breslav
da639039bd
KT-6698 Bad class file when using a star-projection on a Java's recursive generic parameter
...
#KT-6698 Fixed
2015-02-02 19:52:00 +03:00