Natalia Ukhorskaya
e8aef7d29e
Minor: move methods from companion object
2015-12-30 14:49:26 +03:00
Natalia Ukhorskaya
3678bda409
InlineUtil: extract method
2015-12-30 14:49:25 +03:00
Michael Bogdanov
1d70b58d17
Fixed test data
2015-12-30 14:42:12 +03:00
Michael Bogdanov
11268331a8
Added '@' for annotation names in diagnostic messages
2015-12-30 12:25:13 +03:00
Dmitry Petrov
74c13906ed
Drop "substitute with upper bounds" mode for calls with mapped arguments
...
(we don't need it since we build constraint system for generic types).
Cleanup tests.
2015-12-30 10:44:01 +03:00
Dmitry Petrov
4b3290dd8c
Check specificity relation for generant types of the constraint system.
...
Otherwise we can't properly chose between 'dynamic' and generic type.
2015-12-30 10:44:00 +03:00
Dmitry Petrov
c97294a066
stdlib fixes:
...
- 'sequence(initialValue: T?, ...)' should have LowPriorityInOverloadResolution
(otherwise 'sequence({...}, {...})' is ambiguous).
- 'copyOf' and 'copyOfRange' should be defined for 'Array<T>' only
('Array<out T>' version always loses to 'Array<T>', since the second one
is always more specific).
2015-12-30 10:44:00 +03:00
Dmitry Petrov
02daeac41b
Use constraint system for comparing for specificity against a generic signature.
...
Drop "discrimiate generics" mode where it's unneeded.
2015-12-30 10:44:00 +03:00
Alexey Sedunov
aeefdffaab
Implement Abstract Member Intention: Support primary constructor parameters
...
#KT-8427 Fixed
2015-12-30 00:56:34 +03:00
Alexey Sedunov
2b4f03feef
Implement Members Quick-Fix: Support primary constructor parameters
...
#KT-8427 In Progress
2015-12-30 00:56:34 +03:00
Alexey Sedunov
00cc9d4150
Specify Type Explicitly: Filter out types which can't be resolved in the target scope
...
#KT-10066 Fixed
2015-12-30 00:56:34 +03:00
Alexey Sedunov
21fd894d75
Create From Usage: Place caret at the end of initializer selection
...
#KT-10120 Fixed
2015-12-30 00:56:34 +03:00
Alexey Sedunov
c391882651
Minor: Fix NPE (EA-76742)
2015-12-30 00:56:34 +03:00
Alexey Sedunov
5b5e7fb9b7
'Change parameter type' Quick-Fix: Use Change Signature API
...
#KT-9812 Fixed
2015-12-30 00:56:34 +03:00
Alexey Sedunov
9180a99342
Convert to Kotlin: ChangeParameterTypeFix.java
2015-12-30 00:56:34 +03:00
Alexey Sedunov
3af7c7b57a
Convert to Kotlin: ChangeParameterTypeFix.java (rename to .kt)
2015-12-30 00:56:34 +03:00
Pavel V. Talanov
004c266433
Minor: fix missed error marker in test data
2015-12-29 18:13:10 +03:00
Ilya Gorbunov
0aef321c73
Cleanup in idea plugin, src and tests
2015-12-29 18:04:24 +03:00
Ilya Gorbunov
145722b20d
Cleanup in idea plugin modules, misc
2015-12-29 18:04:23 +03:00
Ilya Gorbunov
865fdd7962
Cleanup in idea plugin modules, idea-core
2015-12-29 18:04:22 +03:00
Ilya Gorbunov
6ffc407158
Cleanup in idea plugin modules, idea-completion
2015-12-29 18:04:21 +03:00
Ilya Gorbunov
be590312f7
Cleanup in idea plugin modules, idea-analysis
2015-12-29 18:04:20 +03:00
Ilya Gorbunov
bce9514739
Cleanup in idea plugin modules, ide-common
2015-12-29 18:04:19 +03:00
Ilya Gorbunov
fcfb063eca
Cleanup in modules: j2k, jps, ant and generators.
2015-12-29 18:04:18 +03:00
Ilya Gorbunov
da4b1ae0fb
Cleanup in js modules
2015-12-29 18:04:16 +03:00
Ilya Gorbunov
80916d5ed7
Cleanup in compiler modules
2015-12-29 18:04:15 +03:00
Ilya Gorbunov
911adfd04d
Cleanup in core modules
2015-12-29 18:04:14 +03:00
Ilya Gorbunov
b71b336a69
Fix fq names of moved facade classes in imports and other code occurrences
2015-12-29 18:04:13 +03:00
Nikolay Krasko
f9944e28b0
Show full library panel. Add warning on attempt to create project without library.
2015-12-29 18:01:15 +03:00
Michael Bogdanov
d54c3f4fc7
Added '@' to annotation names in diagnostic messages
2015-12-29 17:20:16 +03:00
Michael Bogdanov
91f27ba176
Report error on 'JvmStatic' annotation on const or @JvmField property
...
#KT-10415 Fixed
2015-12-29 17:20:07 +03:00
Michael Bogdanov
ae4ca3b5bb
Report JvmStatic diagnostic on primary constructor properties
2015-12-29 16:45:24 +03:00
Michael Bogdanov
bb63bcd520
Removed obsolete tests
2015-12-29 16:45:24 +03:00
Michael Bogdanov
e671d05105
Companion public val annotated with @JvmFIeld or const
2015-12-29 16:45:23 +03:00
Michael Bogdanov
e116cc3206
Private visibility for non-const, non-jvmField class companion property backing field
2015-12-29 16:45:22 +03:00
Michael Bogdanov
85ae0cb78e
Restrict companion properties copying to interface by const
2015-12-29 16:45:22 +03:00
Pavel V. Talanov
6f0c2a0260
Project configuration: Add source directories for kotlin builtIns to KotlinRuntime
2015-12-29 15:57:02 +03:00
Pavel V. Talanov
9096a443ea
Do not build light classes for local classes when the there is no class descriptor
...
These cases should be dealt with and this is only a way to degrade gracefully
2015-12-29 15:57:01 +03:00
Pavel V. Talanov
b38fc7b3c1
Parse local interfaces in expression position
2015-12-29 15:57:00 +03:00
Pavel V. Talanov
1c4d4f3e36
Create class descriptors for local classes in illegal positions
...
Typecheck code in illegal selector position
Fixes exceptions on "val p = A.class" erroneous code
2015-12-29 15:56:44 +03:00
Pavel V. Talanov
06e829936e
Fix codegen predictor for properties and property accessors
2015-12-29 12:32:14 +03:00
Pavel V. Talanov
4f5f56e4a5
Add and use KtPropertyAccessor#getProperty()
2015-12-29 12:32:12 +03:00
Denis Zharkov
d511059cfa
Unify code generation of as/is operation
...
They should be the same for common and reified cases
2015-12-28 18:32:15 +03:00
Denis Zharkov
da53d8cbf4
Replace reified operations instanceof/checkcast with is/as
...
It's more consistent with how they effectively work
2015-12-28 18:31:40 +03:00
Denis Zharkov
87b6374351
Get rid of redundant intrinsic
...
Also drop 'safe' parameter from TypeIntrinsics.checkcast,
because it's supposed to work as JVM checkcast (i.e. accepting nulls)
2015-12-28 18:31:40 +03:00
Denis Zharkov
39bbd7c795
Rework reified markers format
...
Use integer operation identifier instead of method name to differentiate
reified operations
2015-12-28 18:31:40 +03:00
Alexander Udalov
890c961383
Fix reflection internal error on enum nested classes query
...
#KT-10520 Fixed
2015-12-28 16:40:34 +03:00
Denis Zharkov
688a1b6305
Adjust type approximation to broken code and missing dependencies
...
- Do not run approximation if arguments number is different
- Add nullable Any? as supertype to MissingDependencyErrorClass
The latter is needed because otherwise TypeArgument.isConsistent became false
2015-12-28 11:13:39 +03:00
Denis Zharkov
722a152a74
Fix supertypes calculation for types with projections
...
Use captured types as replacement for non top-level entries
#KT-7296 Fixed
2015-12-28 11:13:39 +03:00
Denis Zharkov
397d2ca312
Fix captured approximation for case of flexible types
...
#KT-9294 Fixed
2015-12-28 11:13:38 +03:00