Denis Zharkov
098f5462eb
Drop inlineOptions and fix forgotten usages
2015-09-23 12:18:12 +03:00
Denis Zharkov
d937a7cefc
Generate field for const-val with same visibility as desciptor
...
Also add test checking that constant static final fields generated for them
2015-09-23 08:20:57 +03:00
Denis Zharkov
afd4e644a3
Report warning on usages of non-const vals in places where constants expected
2015-09-23 08:20:57 +03:00
Denis Zharkov
8d13f08271
Load static final fields of appropriate types from Java as const
2015-09-23 08:20:57 +03:00
Denis Zharkov
98dd08109d
Serialize/Deserialize const modifier
2015-09-23 08:20:56 +03:00
Denis Zharkov
b2b76d16d0
Add checks for const modifier applicability
...
1. Must be initialized in-place
2. Can not be open/abstract
3. Can not be an override
4. Can not be delegated
5. Initializer must be a compile-time constant
6. No getters
7. `const` is not applicable to vars or locals
8. `const val` should be whether top-level property or object member
2015-09-23 08:20:56 +03:00
Denis Zharkov
02b64ce1ed
Parse const as soft modifier keyword
2015-09-23 08:20:56 +03:00
Michael Nedzelsky
e86bf03e76
fix tests (internal -> public)
2015-09-23 07:49:29 +03:00
Dmitry Jemerov
4ca434da54
remove support for 'trait' keyword
2015-09-22 15:00:24 +02:00
Alexey Sedunov
b4efe33efa
IDEA 142.4859.6: Update LineNumberTestGenerated test data (due to IDEA's ASM upgrade to 5.0.4 which supports multiline labels)
2015-09-21 18:07:46 +03:00
Dmitry Petrov
39e0b3ab92
fix testData related to JvmName retention
2015-09-21 17:33:06 +03:00
Mikhail Glukhikh
ad302fcfba
"field": control of accessor parameter name shadowing, test
2015-09-21 15:48:08 +03:00
Mikhail Glukhikh
c24156ae84
"field": backing field usage deprecated warning, relevant diagnostics tests changed
2015-09-21 15:48:03 +03:00
Mikhail Glukhikh
a1e3471d92
"field": deprecated warnings introduced, compiler tests migrated to the new syntax
2015-09-21 15:48:00 +03:00
Mikhail Glukhikh
9939f96c09
"field" reassignment: fix and test
2015-09-21 15:47:52 +03:00
Mikhail Glukhikh
9f640b00d9
"field": synthetic variable creation in accessors, codegen changed accordingly, a set of tests, relevant code fix (j2k)
2015-09-21 15:47:49 +03:00
Dmitry Kovanikov
ac6a9d95af
[test] Fix testData for AbstractReplInterpreterTest
2015-09-21 14:41:31 +03:00
Dmitry Petrov
80cbee83ee
JvmName should have @Retention(AnnotationRetention.BINARY)
...
(TODO: fix JVM BE)
2015-09-21 14:24:09 +03:00
Dmitry Petrov
da026f1480
Report errors for annotations with BINARY or RUNTIME retention on file classes.
2015-09-21 12:11:53 +03:00
Dmitry Petrov
7f4ae52517
Generate annotations for single-file classes.
2015-09-21 12:10:40 +03:00
Ilya Gorbunov
9c974b6c5c
Fix deprecations in testData: BlackBoxWithStdLibCodegenTest
2015-09-19 04:33:20 +03:00
Ilya Gorbunov
e40a5457e3
Fix deprecations in testData: arrayOf usages.
2015-09-19 04:32:56 +03:00
Stanislav Erokhin
1614de86d2
Support package directive for types
2015-09-18 21:00:21 +03:00
Stanislav Erokhin
69cb3f818d
Use NewQualifiedExpressionResolver for resolve types
2015-09-18 21:00:20 +03:00
Stanislav Erokhin
8efbf4fc32
Fixed testdata -- removed package import
2015-09-18 21:00:20 +03:00
Stanislav Erokhin
387d16d1d5
Regenerate RangesCodegenTest
2015-09-18 21:00:19 +03:00
Stanislav Erokhin
3f2e2deea1
Minor. Improver import resolve, when some error happened
2015-09-18 21:00:19 +03:00
Stanislav Erokhin
f8a018ae27
Introduced NewQualifiedExpressionResolver
2015-09-18 21:00:18 +03:00
Stanislav Erokhin
286d39b866
Import names from singleton but show CANNOT_IMPORT_ON_DEMAND_FROM_SINGLETON error
2015-09-18 21:00:17 +03:00
Zalim Bashorov
f7e2c127b7
Switch to use FakeCallResolver in DelegatedPropertyResolver
2015-09-18 18:31:18 +03:00
Valentin Kipyatkov
452cd49c5e
Disallowed @Deprecated for local variables and parameters
2015-09-18 15:44:16 +03:00
Denis Zharkov
9dada595b6
Replace deprecated annotations with modifiers in testData
2015-09-18 10:14:41 +03:00
Denis Zharkov
4850fd10f0
Regenerate test data containing rendered descriptors
...
Introduced '@' after each annotation
2015-09-18 10:14:39 +03:00
Denis Zharkov
9adde77c47
Replace inlineOption(ONLY_LOCAL_RETURN) with crossinline in testData
2015-09-18 10:14:33 +03:00
Denis Zharkov
bae3320d52
Get rid of deprecated annotations in testData
2015-09-18 10:14:32 +03:00
Denis Zharkov
eebe66e041
Minor. Fix test with obsolete enum syntax
2015-09-18 10:14:31 +03:00
Denis Zharkov
02aafe4262
Report syntax error on unescaped annotation
...
Also adjust parser testData
2015-09-18 09:34:26 +03:00
Denis Zharkov
daa2c8372d
Do not parse '@' as a part of modifier
2015-09-18 09:34:25 +03:00
Denis Zharkov
38bafaa35c
Drop annotations deprecation related things: diagnostics, quickfixes
2015-09-18 09:34:25 +03:00
Alexander Udalov
57c81e9cbe
Disallow arrays as upper bounds of type parameters
...
#KT-9189 Fixed
2015-09-17 21:15:20 +03:00
Zalim Bashorov
1b00eb3a17
Minor: report error instead of crash with exceptions when collect JetFiles to compile and remove obsolete (wrong now) code
...
#EA-61681 Obsolete
2015-09-17 15:45:16 +03:00
Mikhail Glukhikh
7dbd5b75cc
Expected return type is in use now during function literal analysis #KT-9134 Fixed
2015-09-16 17:12:41 +03:00
Mikhail Glukhikh
1667f18d7c
Receiver of a safe call is not null inside the call also for extension functions + a pair of tests #KT-9033 Fixed
2015-09-16 15:04:41 +03:00
Mikhail Glukhikh
22229af930
Annotation / modifier checking for setter parameters / for variables / multi declarations, tests, relevant test changes #KT-9145 Fixed
2015-09-16 09:51:37 +03:00
Alexander Udalov
2b269b2652
Improve ABI version error reporting in the compiler
...
- only report ABI errors if there's at least one other error
- append additional helpful information to the "unresolved reference" error
2015-09-16 01:44:27 +03:00
Alexander Udalov
d98b3433eb
Fix ABI version diagnostic for old package facades
...
Restore the test data that was erroneously replaced in 84649e4
2015-09-16 01:44:27 +03:00
Alexander Udalov
8e83e1c17a
Fix testIncompleteHierarchyInKotlin on Windows
2015-09-15 19:58:25 +03:00
Alexander Udalov
949144e0c0
Report incomplete hierarchy error for deserialized types
...
#KT-5129 Fixed
Delete a JPS test that was specifically testing that we would not fail in this
situation; now there's a compilation error
2015-09-15 13:11:17 +03:00
Alexander Udalov
b4470de713
Improve inline diagnostics, report "nothing to inline" on the modifier
2015-09-15 13:11:16 +03:00
Alexander Udalov
a946f787bc
Fix exception from data class codegen for light classes
...
EA-66827
2015-09-15 13:11:16 +03:00