Commit Graph

436 Commits

Author SHA1 Message Date
svtk 3ea077bb43 Merge remote-tracking branch 'origin/master' 2011-12-09 17:38:34 +04:00
svtk 63d74d41af KT-328 completion //Local function in function literals cause exceptions 2011-12-09 17:37:38 +04:00
Andrey Breslav a7e99b8b11 Better logging + arguemnts resolve on inference failure 2011-12-09 14:45:34 +04:00
Andrey Breslav 744253bcd3 StackOverlowes fixed with FQNames remembered in trace 2011-12-09 13:51:44 +04:00
svtk 4d303b0225 KT-782 Allow backing field usage for accessors of variables on namespace level 2011-12-08 21:57:50 +04:00
svtk c80e42eff3 KT-472 Strange bug with resolve - 3 2011-12-08 20:35:41 +04:00
svtk a41452a01e fix after merge 2011-12-08 19:25:11 +04:00
svtk b0ba456bd0 Merge remote-tracking branch 'origin/master'
Conflicts:
	compiler/frontend/src/org/jetbrains/jet/lang/resolve/DescriptorResolver.java
2011-12-08 19:22:12 +04:00
Andrey Breslav 22e1412c38 KT-743 Wrong type inference 2011-12-08 19:17:31 +04:00
svtk d93818d0f5 KT-371 Resolve default parameters for constructors 2011-12-08 18:29:52 +04:00
svtk a0cd4af3bd Merge remote-tracking branch 'origin/master' 2011-12-08 13:43:56 +04:00
svtk e05dea7046 added specializing error "Variable initializer is redundant" for unused-vars analysis 2011-12-08 13:43:46 +04:00
svtk 7213d43f22 added util methods 'getParentOfType', 'isAncestor' for descriptors 2011-12-08 13:42:32 +04:00
Stepan Koltsov c6ed916101 fix wrong names 2011-12-08 04:31:36 +04:00
Andrey Breslav 8735122cce Merge remote branch 'origin/master' 2011-12-07 19:55:51 +04:00
Andrey Breslav ae03b4531e Debug info for overload resolution/type inference 2011-12-07 19:45:21 +04:00
Andrey Breslav 40937e438b KT-762 Wrong highlighting in imports (No errors reported on unresolved imports) 2011-12-07 17:26:28 +04:00
Nikolay Krasko e5c39df519 KT-658 Show types in IDEA auto assist for kotlin 2011-12-07 12:19:50 +04:00
svtk a9d1cea965 fix after merge 2011-12-06 22:45:19 +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
Stepan Koltsov 6f21de8edc working on reading class data from .class files 2011-12-06 22:32:17 +04:00
Stepan Koltsov f68aabbcab Temporarily revert "working on reading class data from .class files"
This reverts commit 29ebb124c8.
2011-12-06 17:48:33 +04:00
Stepan Koltsov 29ebb124c8 working on reading class data from .class files 2011-12-06 16:54:52 +04:00
Andrey Breslav b182d61a03 Merge remote branch 'origin/master'
Conflicts:
	compiler/backend/src/org/jetbrains/jet/codegen/FunctionCodegen.java
2011-12-06 14:44:39 +04:00
Andrey Breslav deb8d5ea20 KT-689 Allow to put Java and Kotlin files in the same packages 2011-12-06 14:43:10 +04:00
Nikolay Krasko 49f0947c05 KT-738 No kotlin type completion in extend class scope - Fixes after CR-KT-13 review 2011-12-05 16:20:10 +04:00
Nikolay Krasko 65fb8d40b7 KT-738 No kotlin type completion in extend class scope 2011-12-05 16:20:09 +04:00
Andrey Breslav d3abbc5b56 Common superinterface for JetBinaryOperation and JetUnaryOperation 2011-12-02 20:05:32 +03:00
Stepan Koltsov f7fb30b5b6 document all possible kinds of MutableClassDescriptor.containingDeclaration 2011-12-02 18:51:15 +04:00
Andrey Breslav 48eb597ea2 'inference' package moved from 'types' to 'resolve.calls' 2011-12-02 14:53:16 +03:00
svtk 6f314c09b0 Merge remote-tracking branch 'origin/master' 2011-12-02 14:18:44 +04:00
svtk 39ac205b55 KT-250 Incorrect variable resolve in constructor arguments of superclass
KT-10 Don't allow to use properties in supertype initializers
KT-617 Prohibit dollars in call to superclass constructors
2011-12-02 14:18:36 +04:00
Andrey Breslav 13a1777d39 KT-702 Type inference failed 2011-12-01 22:33:43 +03:00
Andrey Breslav df733a5b60 Type checker moved to a separate package 2011-12-01 20:20:21 +03:00
Andrey Breslav 68d256c480 Equality moved to type checker 2011-12-01 20:19:13 +03:00
Alex Tkachman 6febd82b99 Merge remote branch 'origin/master' 2011-12-01 17:27:12 +02:00
Alex Tkachman e8b76e8752 patches from Andrey & Sergey Ignatov 2011-12-01 17:26:54 +02:00
Stepan Koltsov e3cf374f31 better error diagnostics 2011-12-01 18:16:15 +04:00
Stepan Koltsov 52c1e9a950 one more case of KT-445 Don't allow deep instanceof for erased parameters
===
(a : List<out Any>) is List<out Int>
===
2011-12-01 17:41:13 +04:00
Alex Tkachman 74fe24ef80 refactoring of property handling and general handling of (this,receiver) 2011-12-01 12:58:20 +02:00
Nikolay Krasko eac15880e5 Merge branch 'master' of git+ssh://git.labs.intellij.net/jet 2011-12-01 12:00:38 +04:00
Stepan Koltsov 957b2173d9 WritableScope.changeLockLevel()
This patch allows WritableScope "locking". WritableScope now has
three lock levels: reading, writing, both. Scope modification is
not allowed in "reading" state, scope data access is not allowed
in "writing".

Scope lock level can only be raised: from "writing" to "both" and
from "both" to "reading".

There are two reasons for this enhancement:

1. Code self-documentation. It is clear where WritableScope is used
as readonly scope. For example developers can see that class structure
is not modified after DelegationResolver.process(), because
MutableClassDescriptor.lockScopes() is called right after that
method.

2. Ease of debugging, program gets more assertions. For example,
if some scope is not yet filled and some member resolution is
triggered, IllegalStateException is thrown instead of wrong unresolved
reference.

Currently not all scope locks are configured strictly. In many cases
lock level is set to safe "both" value.
2011-11-30 23:24:02 +04:00
Stepan Koltsov aa4c6e8e8e Make proper scope for property declaration
Make sure same scope is used for both property creation and for properly body resolution.
This fixes KT-421 Strange 'unresolved' bug with backing fields.
2011-11-30 20:48:37 +04:00
Nikolay Krasko ffc5db6c35 Merge branch 'master' of git+ssh://git.labs.intellij.net/jet 2011-11-30 19:54:35 +04:00
Nikolay Krasko 1e3c45e65c KT-688: Show kotlin keywords as auto completion in IDEA 2011-11-30 18:33:37 +04:00
Andrey Breslav 49c29dd323 KT-691 Allow to create nested namespaces with dot delimiter 2011-11-30 15:06:55 +03:00
Andrey Breslav 7fd7bdb2b8 KT-668 Failed to resolve generic parameter
Same lower and upper bounds cause an equality constraint to be created
2011-11-30 12:56:11 +03:00
Andrey Breslav 5293d1553b // KT-630 Bad type inference 2011-11-30 11:02:03 +03:00
Andrey Breslav 82bddcc95b Merge remote branch 'origin/master' 2011-11-30 10:20:31 +03:00