Alexander Udalov
51fd654802
Regenerate injectors and keyword strings
...
After recent changes to Printer
2014-10-21 00:16:08 +04:00
Alexander Udalov
4d9ef1042d
Prohibit 'override' on classes and all modality on objects
...
#KT-3464 Fixed
2014-10-21 00:16:07 +04:00
Alexander Udalov
ae401cac0f
Prohibit type parameters for enum classes
...
#KT-5696 Fixed
2014-10-21 00:16:07 +04:00
Alexander Udalov
63366042ed
Fix incorrect "senseless null in when" on nullable type
2014-10-21 00:16:07 +04:00
Alexander Udalov
fe59dc27b3
Make 'when' on nullable enums exhaustive if 'null' entry is present
...
#KT-2902 Fixed
2014-10-21 00:16:06 +04:00
Alexander Udalov
91105b8183
Minor, fix some warnings in DeclarationsChecker
2014-10-21 00:16:06 +04:00
Alexander Udalov
c071ac854e
Prohibit all modifiers for enum entries
...
#KT-2679 Fixed
2014-10-21 00:16:06 +04:00
Svetlana Isakova
68e2e21fb9
Refactoring: inlined 'collectSmartCastReceiverValues'
2014-10-18 11:06:53 +04:00
Svetlana Isakova
4a1a95ea36
Rename: casted -> cast
2014-10-18 11:06:53 +04:00
Svetlana Isakova
595b3ffe23
KT-6026 Exception on instantiating a nested class in an anonymous object
...
#KT-6026 Fixed
2014-10-18 11:06:53 +04:00
Svetlana Isakova
c0c9552f4c
KT-5971 Missing error when fun argument is safe call
...
#KT-5971 Fixed
2014-10-18 11:06:53 +04:00
Svetlana Isakova
c339df65a9
Small refactoring in CandidateResolver
2014-10-18 11:06:52 +04:00
Svetlana Isakova
a47729c626
KT-5455 Need warning about redundant type cast
...
#KT-5455 Fixed
2014-10-18 11:06:52 +04:00
Svetlana Isakova
b20327770b
KT-5854 Incorrect 'Nested class should be qualified'
...
#KT-5854 Fixed
2014-10-18 11:06:52 +04:00
Svetlana Isakova
29fa87ee7c
Slightly reduce number of candidates in task prioritizer
...
return only extensions (functions) when we expecting extensions (not all functions);
for properties it's not that easy: they may have extension function types, and we want to avoid early computing of deferred types
rename: getNonMembersByName -> getExtensionsByName
Report NO_RECEIVER_ALLOWED for '42.(f)()' where f: () -> Unit in TracingStrategyForInvoke
(we don't store candidates for such 'invoke' functions any more)
2014-10-18 11:06:52 +04:00
Svetlana Isakova
c0eb894bd9
Rename: NO_RECEIVER_ADMITTED -> NO_RECEIVER_ALLOWED
2014-10-18 11:06:51 +04:00
Svetlana Isakova
cd3dc5998f
Rewrote CallableDescriptorCollectors to Kotlin
2014-10-18 11:06:51 +04:00
Svetlana Isakova
dfd88b8f24
Rename CallableDescriptorCollectors.java to CallableDescriptorCollectors.kt
2014-10-18 11:06:51 +04:00
Valentin Kipyatkov
549171d043
Completely rewritten keyword completion implementation using another approach
...
#KT-2816 Fixed
2014-10-16 15:14:21 +04:00
Andrey Breslav
a128b94e2e
Typo fixed: "cast", not "casted"
2014-10-16 14:10:14 +04:00
Andrey Breslav
9feebb1dc6
"typedef" replaced with "typeAlias" in the grammar
2014-10-16 14:10:02 +04:00
Nikolay Krasko
4cb276c47f
More information about context for assert
2014-10-16 13:01:37 +04:00
Valentin Kipyatkov
2365db1367
Fixed KT-6011 Smart completion works for argument of wrong method
...
#KT-6011 Fixed
2014-10-15 17:30:33 +04:00
Andrey Breslav
2bf6db003a
Error message corrected: packages can't be nested any more
2014-10-15 12:22:35 +04:00
Andrey Breslav
391b57077b
KT-5976 Parser recovery is poor on object with parameters
...
#KT-5976 Fixed
2014-10-15 12:22:35 +04:00
Evgeny Gerashchenko
fbcfed6757
Fixed EA-57220.
2014-10-15 11:51:01 +04:00
Valentin Kipyatkov
a08373fec6
Minor code corrections after review
2014-10-14 21:19:10 +04:00
Andrey Breslav
b1e452b568
type unescaped in *.kt files
2014-10-14 13:02:13 +04:00
Alexey Sedunov
dc62d167ad
Add user-data delegate for non-nullable properties
2014-10-14 01:59:52 +04:00
Alexey Sedunov
c73c581b11
Call Resolver: Report UNRESOLVED_REFERENCE instead of EXPRESSION_EXPECTED_PACKAGE_FOUND when callee expession is resolved to package
2014-10-14 01:59:48 +04:00
Alexey Sedunov
a3a0edca58
Pseudocode: Drop CompilationErrorInstruction
2014-10-14 01:59:43 +04:00
Alexey Sedunov
a56c54371e
Pseudocode: Generate instructions for unresolved array assignments
2014-10-14 01:59:42 +04:00
Nikolay Krasko
22d33a5afa
Data class copy method invocation gives errors in IDE when some optional parameters specified (KT-5975)
...
#KT-5975 Fixed
2014-10-14 00:39:22 +04:00
Pavel V. Talanov
c1f8db5962
Fix MutableDiagnosticsTest#testCaching()
...
Sadly relying on implementation details
2014-10-13 19:48:57 +04:00
Andrey Breslav
cc68ed894b
"type" is not a keyword anymore ("typealias" reserved instead)
2014-10-13 15:41:13 +04:00
Andrey Breslav
4a132599fd
getAllOverriddenDescriptors() moved to DescriptorUtils
2014-10-13 15:38:22 +04:00
Andrey Breslav
9fb09e62af
toString() on nullables fixed
2014-10-13 15:38:19 +04:00
Andrey Breslav
8eb57f5a75
Parser recovers on platform types notation:
...
- Foo!
- Array<(out) Foo>!
- (Mutable)List<Foo>!
2014-10-13 15:38:18 +04:00
Andrey Breslav
e418a763db
Fix JetType.equals(): flexible types are not equal to non-flexible ones, when we store them in a HashSet
2014-10-13 15:38:15 +04:00
Andrey Breslav
f1c66fa6b0
Assertions on approximation of platform types to non-null types
...
- for most expressions (ExpressionCodegen.genQualified)
2014-10-13 15:38:13 +04:00
Andrey Breslav
57bffaf8fa
All JetType subinterfaces migrated to capabilities
2014-10-13 15:38:12 +04:00
Andrey Breslav
013dd7261e
Extensible specificity expressed as a type capability
2014-10-13 15:38:11 +04:00
Andrey Breslav
52ed640a2b
Visibility fixed
2014-10-13 15:38:09 +04:00
Andrey Breslav
40932f84c8
isFlexible() turned into a method in JetType
...
Otherwise delegated types were never recognized as flexible
2014-10-13 15:38:07 +04:00
Andrey Breslav
0b6a4df4f4
The case of Integer.getInteger("1", 2) fixed (was: OVERLOAD_RESOLUTION_AMBIGUITY)
2014-10-13 15:38:04 +04:00
Andrey Breslav
d1214d2368
Another TypeUtils.isNullableType() introduced
2014-10-13 15:38:00 +04:00
Andrey Breslav
a3d9ff65aa
Wrong "USELESS_ELVIS" fixed
2014-10-13 15:37:54 +04:00
Andrey Breslav
c2a03d60f0
Better support for forced resolve while debugging
2014-10-13 15:37:49 +04:00
Andrey Breslav
b4f26bde44
Support forced resolve for lazy flexible types
2014-10-13 15:37:49 +04:00
Andrey Breslav
195274370f
Fix the case of safe call and elvis operators: flexible types may be nullable
2014-10-13 15:37:46 +04:00