Dmitriy Novozhilov
3e0eb06e3e
[FIR] Add FirOldFrontendDiagnosticsWithLightTreeTestGenerated
2021-04-20 18:12:42 +03:00
Igor Yakovlev
e4870740e1
[LC] Fixed light classes nullability for Kotlin 1.5
...
Fixed #KT-44472
2021-04-20 15:21:12 +02:00
Igor Yakovlev
63160293fb
[LC] Fix invalid nullability for properties
...
Fixed #KT-46097 and #KT-41671
2021-04-20 15:21:12 +02:00
Andrey Zinovyev
8071a1e246
[KAPT] Keep constant references in annotations with array values
...
#KT-29929 Fixed
2021-04-20 15:47:03 +03:00
Yahor Berdnikau
9e9450caa2
Fix adding associated compilation for Kotlin Native.
...
Kotlin native does not support 'compileOnly' or 'runtimeOnly'
configurations. In this case associated compilations are added as
'implementation'.
^KT-45911 Fixed
2021-04-20 10:15:15 +02:00
Abduqodiri Qurbonzoda
57c4f79c1c
Update Char.digitToInt documentation
2021-04-20 04:36:05 +03:00
Ilya Kirillov
26e39b3d2a
FIR IDE: do not resolve all members for getting inner classes for light classes
2021-04-20 01:32:26 +03:00
Ilya Kirillov
051310124b
FIR IDE: do not fail duplicating classes with members
2021-04-20 01:32:25 +03:00
Mark Punzalan
73b796f184
FIR IDE: Enable RemoveExclExclCallFix for UNNECESSARY_NON_NULL_ASSERTION.
2021-04-19 22:29:07 +02:00
Mark Punzalan
34609b264d
FIR IDE: Move RemoveExclExclCallFix to idea-frontend-independent.
2021-04-19 22:29:07 +02:00
Alexander Udalov
4fffed4165
Improve test on equals/hashCode for KProperty accessors
...
Remove duplication & unnecessary checks, check equality in both
directions, check hashCode, add more cases, rename variables for
clarity.
#KT-13490
2021-04-19 20:39:54 +02:00
Xin Wang
c959b271a4
Override "hashCode" and "equals" for Getter and Setter to fix KT-13490
2021-04-19 20:39:54 +02:00
Dmitry Petrov
46d5e974df
JVM_IR KT-46160 don't use LambdaMetafactory for mutifile class members
2021-04-19 19:32:34 +03:00
yantimirov-timur
1dfc3c0520
FIR: add getter visibility and setter return type checks
2021-04-19 19:21:09 +03:00
Abduqodiri Qurbonzoda
eedc4d8c3f
[K/N] Fix measureTimeMillis and measureNanoTime doc
2021-04-19 19:14:34 +03:00
Abduqodiri Qurbonzoda
aa04f60df4
[K/N] Fix Floating.toInt/toLong doc
2021-04-19 19:14:33 +03:00
Abduqodiri Qurbonzoda
4c66c1c137
[K/N] Fix Primitive.shl/shr/ushr doc
2021-04-19 19:14:32 +03:00
Abduqodiri Qurbonzoda
19ecb78531
[K/N] Fix Primitive.rem doc
2021-04-19 19:14:30 +03:00
Abduqodiri Qurbonzoda
2cfbad9477
[K/N] Fix Primitive.div doc
2021-04-19 19:14:29 +03:00
Abduqodiri Qurbonzoda
b5e3dc414f
Fix Array.iterator doc
2021-04-19 19:14:28 +03:00
Abduqodiri Qurbonzoda
8a1855e4da
[K/N] Fix Range.isEmpty doc
2021-04-19 19:14:27 +03:00
Abduqodiri Qurbonzoda
71c5c8b20a
Fix Range.isEmpty doc
2021-04-19 19:14:25 +03:00
Abduqodiri Qurbonzoda
fb4ddd2f6e
[K/N] Fix StringBuilder.deleteRange doc
2021-04-19 19:14:23 +03:00
Abduqodiri Qurbonzoda
76b297fd73
[K/N] Fix StringBuilder.clear doc
2021-04-19 19:14:21 +03:00
Abduqodiri Qurbonzoda
597b18582a
[K/N] Fix Char.isISOControl doc
2021-04-19 19:14:19 +03:00
Abduqodiri Qurbonzoda
bb2a50a4eb
Fix Char.isISOControl doc
2021-04-19 19:14:17 +03:00
Abduqodiri Qurbonzoda
d1f18c4651
Add @see doc references to java isUpperCase and isLowerCase
2021-04-19 19:14:14 +03:00
Abduqodiri Qurbonzoda
22dcc92951
Fix Char.isTitleCase doc
2021-04-19 19:14:13 +03:00
Abduqodiri Qurbonzoda
e83ceb9d40
[K/N] Fix String.replace doc
2021-04-19 19:14:11 +03:00
Abduqodiri Qurbonzoda
36aee8f2b4
Fix String.replace doc
2021-04-19 19:14:10 +03:00
Abduqodiri Qurbonzoda
dab09e7052
Fix CharSequence.repeat doc
2021-04-19 19:14:08 +03:00
Ilya Goncharov
c73dadbcdf
[Gradle, JS] Install dukat only if there is dependency with generateExternals
...
^KT-46178 fixed
2021-04-19 17:29:51 +03:00
pyos
dab693b075
Revert "JVM IR: Implement CHECK_NOT_NULL as a lowering"
...
This reverts commit dcd72b06d8 .
Using a temporary variable has an effect on casts and GC.
2021-04-19 16:05:12 +02:00
Ilmir Usmanov
f5379c5a04
Add @JvmInline annotation in common code if JVM target is present
...
#KTIJ-8863 Fixed
#KT-46088 Fixed
2021-04-19 16:56:31 +03:00
Ivan Kochurkin
00bc04b3df
[FIR] Implement ELSE_MISPLACED_IN_WHEN diagnostics, fix tests
2021-04-19 15:46:38 +03:00
Dmitry Petrov
7f4da93cc3
JVM_IR KT-45998 protected companion object member accessors with indy
2021-04-19 15:41:21 +03:00
Dmitry Petrov
9a4a39e680
JVM_IR KT-45998 fix protected companion object member accessors
...
Also, make sure it works with indy-based SAM conversions.
2021-04-19 15:41:19 +03:00
Mikhail Glukhikh
b1fb0ba9e1
Fix FirDiagnosticsList (remove earlier dropped FirSourceElements)
2021-04-19 15:29:07 +03:00
Mikhail Glukhikh
8a2cab346a
Fix FIR IDE tests (EXPRESSION_EXPECTED, ITERATOR_MISSING, etc.)
2021-04-19 15:11:17 +03:00
Tianyu Geng
b5caa658d6
FIR: introduce delegate diagnostics
...
This commit adds diagnostics for the following
* DELEGATE_SPECIAL_FUNCTION_MISSING
* DELEGATE_SPECIAL_FUNCTION_AMBIGUITY
* DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE
2021-04-19 15:11:16 +03:00
Tianyu Geng
454ae3b17a
FIR checker: report UNSAFE_CALL for overloaded function calls
...
Previously if an unsafe call is to an overloaded function, FIR checkers
report NONE_APPLICABLE. This change instead report them as UNSAFE_CALL
or its variants.
2021-04-19 15:11:13 +03:00
Mikhail Glukhikh
92df1f575a
Fir2IrVisitor: simplify creating for-loop blocks due to changed FIR side
2021-04-19 15:11:13 +03:00
Tianyu Geng
6a03f31e50
FIR: add UnsafeCall resolution diagnostics
...
Previously unsafe call is reported as part of InapplicableWrongReceiver.
This makes it difficult for the downstream checkers to report different
diagnostics.
2021-04-19 15:11:13 +03:00
Mikhail Glukhikh
43a2ad0467
FIR: don't flatten for loop blocks in raw FIR builder
2021-04-19 15:11:12 +03:00
Mikhail Glukhikh
a736d62edd
FirForLoopChecker: report also OPERATOR_MODIFIER if appropriate + minor
...
This commits checks iterator/hasNext/next functions whether they are
declared as operator or not. Also, it changes logic of hasNext/next
error reporting, now we're able to report errors about both these
functions.
2021-04-19 15:11:10 +03:00
Mikhail Glukhikh
2e14b65644
Introduce FirForLoopChecker
2021-04-19 15:10:58 +03:00
Mikhail Glukhikh
4ddc0ed3fe
FIR: introduce block checkers
2021-04-19 15:10:39 +03:00
Mikhail Glukhikh
eb831b9afc
FIR: support separate ANONYMOUS_FUNCTION_WITH_NAME
2021-04-19 15:10:38 +03:00
Mikhail Glukhikh
6b95bcdbdb
FIR: support separate ASSIGNMENT_IN_EXPRESSION_CONTEXT
2021-04-19 15:10:18 +03:00
Mikhail Glukhikh
9894b97058
FIR: rename EXPRESSION_REQUIRED to EXPRESSION_EXPECTED
2021-04-19 15:09:50 +03:00