Svetlana Isakova
b6b1ce52e1
tests changed:
...
added check for unused/uninitialized variables inside local and anonymous functions
2012-05-28 12:06:13 +04:00
Nikolay Krasko
e946a0f908
- Out of block modification strategy for Kotlin block expression
...
- Separate project analysis for IDEA needs: headers + bodies
2012-05-27 17:39:56 +04:00
Svetlana Isakova
0fd882741b
function invocation with only type parameters prohibited
2012-05-23 22:04:22 +04:00
Svetlana Isakova
b63d3905f9
KT-1256 Error highlighting in IDE should be less annoying
...
#KT-1256 fixed
2012-05-22 18:23:51 +04:00
Stepan Koltsov
8c8ed3a1ee
KT-1388 Parse static final fields from java binary classes as non-null
...
#KT-1388 Fixed
2012-05-13 00:53:37 +04:00
Svetlana Isakova
d4b816ef56
KT-1743 Analyze immutable local variables and parameters which are captured in closure
...
#KT-1743 fixed
2012-05-03 17:56:45 +04:00
Andrey Breslav
3ee8c5e469
A warning added: parameter names disagree upon override
...
This should be an error, but there is an issue with Java interop: Java parameters may change names or not have them.
2012-04-27 21:33:48 +04:00
Evgeny Gerashchenko
1123a4f438
Clarified error message for TYPE_MISMATCH_IN_BINDING_PATTERN.
2012-04-19 15:21:59 +04:00
Evgeny Gerashchenko
6a13510741
Replaced Diagnostic.getMessage() with DiagnosticRenderer.render() calls.
...
Made Diagnostic.getMessage() deprecated, introduced DiagnosticRender interface and default implementation for it.
2012-04-13 19:31:45 +04:00
Evgeny Gerashchenko
6b2e90126d
Fixed highlighting for safe access dot.
2012-04-11 15:53:57 +04:00
Evgeny Gerashchenko
05fd46009d
Replaced diagnostic factories so they show type FQ names instead of short names.
...
#KT-1137 fixed
2012-04-08 22:45:07 +04:00
Svetlana Isakova
5520e1a2b0
'AbstractStringBuilder' has package private, so cannot be used in tests
2012-04-04 19:02:26 +04:00
Evgeny Gerashchenko
c989b2e5ba
Updated "Autocasts" test data in JetPsiCheckerTest. Replaced types with their FQ names.
2012-04-04 16:14:00 +04:00
Svetlana Isakova
cd6f3139f0
Changed scope for initializer of extension property /*not to resolve things like val List.length = size() */
2012-03-28 13:14:35 +04:00
Svetlana Isakova
a91a53f7f1
KT-1531 Frontend should prohibit secondary constructors
...
# KT-1531 Fixed
2012-03-27 17:48:04 +04:00
Svetlana Isakova
f7cfb36f62
# KT-1579 Fixed Can't import nested class/trait
2012-03-27 16:20:59 +04:00
Svetlana Isakova
9dc9e9984b
KT-1572 Frontend doesn't mark all vars included in closure as refs.
2012-03-14 15:07:33 +04:00
Svetlana Isakova
c857785910
KT-1002 If there's no return in function highlight only last token but not last statement
2012-03-09 12:20:10 +04:00
Svetlana Isakova
b6161cb41b
Bug with wrong 'anonymous initializer without constructor' fixed
2012-03-05 17:05:36 +04:00
Andrey Breslav
cefd9d5ca2
KT-627 Drop Predicate expression
2012-02-27 12:58:23 +04:00
Svetlana Isakova
cc244fad94
KT-1191 Wrong detection of unused parameters
...
KT-1219 Incorrect 'unused value' error in closures
2012-02-24 12:09:02 +04:00
Alex Tkachman
53bba59a4f
dbl -> toDouble
2012-02-22 13:14:41 +02:00
Andrey Breslav
bff62484b1
KT-1306123.lng or 123.sht is not good name
2012-02-20 21:42:13 +04:00
Svetlana Isakova
046c13a264
KT-1041 Add check that thrown/catched expression is of Throwable type
2012-02-20 14:03:39 +04:00
Stepan Koltsov
4b94eb5e2b
rewrite owner when copying FunctionDescriptor from supertype scope
...
that fixes invocation:
>>> StringBuilder.length()
that was compiled to
>>> invokevirtual CharSequence.length()
and now compiles to
>>> invokevirtual StringBuilder.length()
Essentially patch rewrites FunctionDescriptor.containingDeclaration
when FunctionDescriptor is copied to subclass scope.
FunctionDescriptor now has kind field that can be
* DECLARATION (for "real" function, maybe abstract)
* DELEGATION
* FAKE_OVERRIDE (created for functions from supertypes)
All tests pass although some parts of code are buggy and ugly.
Random comments about this patch:
* FunctionDescriptor.overrides point to function descriptors of supertype scopes
* Filling of memberScope with supertypes is moved to OverrideResolver
* ExpressionCodegen.intermediateValueForProperty must be rewritten
* Patch adds not nice REDECLARATION reports (see compiler/testData/diagnostics/tests/*).
Will be fixed later.
2012-02-10 20:36:40 +04:00
svtk
6251b413a2
New check rules for inc, plus & plusAssign
...
KT-1176 arrayList[0]++. Setter is stored for array access expression when it's needed
2012-02-03 12:10:12 +04:00
Andrey Breslav
1b88be725a
Nullability fixed in a test
2012-01-31 11:37:01 +04:00
svtk
11ad28812d
KT-1175 Mark unused literals
2012-01-27 18:32:55 +04:00
Andrey Breslav
90b98a63b5
KT-1130 Remove ref from keywords
2012-01-25 13:12:42 +04:00
svtk
70d0cd882b
KT-650 Prohibit creating class without constructor
2012-01-24 16:58:29 +04:00
svtk
b3eb44e769
removed some string methods from library.jet
2012-01-20 19:32:12 +04:00
svtk
7fae503a38
KT-1080 Don't use previously imported packages while resolving import references
2012-01-20 11:58:17 +04:00
svtk
becd713111
KT-234 Force when() expressions to have an 'else' branch
...
KT-973 Unreachable code
2012-01-18 13:31:42 +04:00
svtk
390eb0cde3
forbid import of functions and properties from objects
2012-01-12 18:39:25 +04:00
Nikolay Krasko
0573efa6fb
KT-960 import namespace should give unresolved reference
2012-01-11 13:55:20 +04:00
Stepan Koltsov
6446e83b29
remove VariableDescriptor.inType
...
(approved by Andrey Breslav)
2011-12-30 18:45:49 +04:00
Andrey Breslav
7fcae64766
Parser test data fixed
2011-12-27 15:20:31 +04:00
Andrey Breslav
1704247534
Merge remote branch 'origin/master'
...
Conflicts:
idea/testData/checker/RecursiveTypeInference.jet
2011-12-27 15:00:33 +04:00
Andrey Breslav
b453880d9c
Better message for recursive type inference
2011-12-27 14:59:24 +04:00
Andrey Breslav
2d78ccb9e1
Annotator test data fixed
2011-12-27 14:54:41 +04:00
Andrey Breslav
fa5be15852
Diagnostics test data fixed
2011-12-26 19:55:29 +04:00
Andrey Breslav
f52eae71d0
GreatSyntacticShift: 'namespace' -> 'package'
2011-12-25 15:51:59 +04:00
Andrey Breslav
889c7c0002
GreatSyntacticShift: erroneous fix reverted
2011-12-21 11:48:24 +02:00
Andrey Breslav
f67c6549eb
GreatSyntacticShift: Codegen testdata fixed
2011-12-21 11:45:50 +02:00
Andrey Breslav
3808bff1ce
GreatSyntacticShift: Checker test data fixed
2011-12-21 11:24:04 +02:00
Andrey Breslav
0a2108d4d0
Constraint priorities integrated
2011-12-16 13:09:28 +04:00
svtk
63d74d41af
KT-328 completion //Local function in function literals cause exceptions
2011-12-09 17:37:38 +04:00
svtk
e05dea7046
added specializing error "Variable initializer is redundant" for unused-vars analysis
2011-12-08 13:43:46 +04:00
svtk
af3b06b65b
Merge remote-tracking branch 'origin/master'
...
Conflicts:
compiler/frontend/src/org/jetbrains/jet/lang/cfg/JetFlowInformationProvider.java
2011-12-06 22:42:50 +04:00
svtk
ec55dddfcd
backing fields resolve changed
...
KT-462 Consider allowing initializing properties via property names when it is safe
KT-598 Allow to use backing fields after this expression
2011-12-06 22:41:19 +04:00