Stepan Koltsov
622133f217
File parameter to NamedTestFactory
2011-12-02 23:39:52 +04:00
Alex Tkachman
6825fc8879
KT-665 wrong 0 on default long argument
2011-12-01 18:14:02 +02:00
Alex Tkachman
74fe24ef80
refactoring of property handling and general handling of (this,receiver)
2011-12-01 12:58:20 +02:00
Andrey Breslav
aad2d17cd8
'quick' directory renamed to 'tests' which reflects its contents
2011-12-01 14:40:31 +03:00
Andrey Breslav
8cee193f47
Multifile tests supported
...
Example of a multifile test: you create a single file under the "quick" directory and put text of all your test files into it, prepending each file with a comment as follows:
// FILE: foo
class foo
// FILE: bar
class <!FOO!>bar<!>
2011-12-01 14:38:10 +03: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
Andrey Breslav
90c4b0e746
Raw strings: """ .. """ fixed
2011-11-30 10:20:19 +03:00
svtk
2849c58d47
Merge remote-tracking branch 'origin/master'
2011-11-29 19:04:30 +04:00
svtk
ba49f508c9
KT-609 Analyze not only local variables, but function parameters as well in 'unused values' analysis
2011-11-29 19:04:15 +04:00
Alex Tkachman
ce1718e518
better handling of empty if/else blocks
2011-11-29 11:56:30 +02:00
Stepan Koltsov
4fc41f4ad9
mark syntax errors in QuickJetPsiCheckerTest
2011-11-29 01:55:39 +04:00
svtk
f5667874b0
Merge remote-tracking branch 'origin/master'
...
Conflicts:
compiler/frontend/src/org/jetbrains/jet/lang/types/expressions/ControlStructureTypingVisitor.java
2011-11-28 18:40:24 +04:00
svtk
fc943049d3
KT-629 Assignments are parsed as expressions
2011-11-28 18:38:40 +04:00
Alex Tkachman
a9c4073f8c
test for unreproducable KT-640
2011-11-28 15:12:09 +02:00
Alex Tkachman
afd8981c00
do not write compiled stdlib in to output dir
2011-11-28 14:51:12 +02:00
Alex Tkachman
b9f39b00c0
KotlinCompiler and tests aware on standard library
2011-11-28 14:36:57 +02:00
Alex Tkachman
554aab83be
npe() renamed to sure()
2011-11-26 10:01:57 +02:00
Alex Tkachman
2cbd072478
npe() runtime intrinsic method.
2011-11-26 09:30:24 +02:00
Stepan Koltsov
a6eeb01b64
try to fix VarArgTest
...
Accoring to spec array of class.getMethods() is not sorted, so we can't just call
getMethods()[0] to get desired method.
2011-11-25 22:31:29 +04:00
Stepan Koltsov
7bc2736568
merge FullJetPsiCheckerTest into QuickJetPsiCheckerTest
2011-11-25 18:22:48 +04:00
Nikolay Krasko
778e8fd21b
Merge branch 'master' of git+ssh://git.labs.intellij.net/jet
2011-11-25 17:43:09 +04:00
Nikolay Krasko
0c758902ef
KT-621 Remove .foo() pattern matching from when (Some tests were rewritten)
2011-11-25 17:39:16 +04:00
Stepan Koltsov
194bd73edd
temporarily print signature of generated method to diagnose failing tests on core7i-5-ubuntu
2011-11-25 16:12:48 +04:00
Alex Tkachman
dce0746bd9
some debug print commented out
2011-11-25 10:50:33 +02:00
Alex Tkachman
21a0d1f85c
KT-613 verify error ++/-- in presence of this|receiver
2011-11-25 10:32:17 +02:00
Alex Tkachman
b990792917
Merge remote branch 'origin/master'
2011-11-24 22:33:13 +02:00
Andrey Breslav
aba6b3d6b9
KT-549 type inference failed
...
KT-580 Type inference failed
KT-600 Problem with 'sure' extension function type inference
KT-571 Type inference failed
2011-11-24 22:56:14 +03:00
Alex Tkachman
c0cc97063d
optimized bytecode of is
2011-11-24 18:02:44 +02:00
Alex Tkachman
fd9eadb729
KT-602: Array<T> method instead of default constructor parameter
2011-11-24 15:34:08 +02:00
Stepan Koltsov
9bd98cdf2b
disable TypeInfoTest.testIsWithGenerics
...
(test is wrong, see http://youtrack.jetbrains.net/issue/KT-612 )
2011-11-24 17:22:27 +04:00
svtk
63304cc2cf
Merge remote-tracking branch 'origin/master'
2011-11-24 16:02:44 +04:00
svtk
a7bb30a18c
"Unused value" error added to existed tests
2011-11-24 15:59:44 +04:00
Stepan Koltsov
648540ad0c
restore +-JDK options
2011-11-24 15:18:41 +04:00
Stepan Koltsov
dca64c8ba9
Revert "+-JDK and -NOSTDLIB options"
...
This reverts commit 8222011874 .
+- JDK will be restored in next commit
removal of -STDLIB was requested by Andrey Breslav
2011-11-24 15:18:37 +04:00
Andrey Breslav
1c14718214
Class renamed to better reflect it's purpose
2011-11-23 20:37:22 +03:00
Stepan Koltsov
8222011874
+-JDK and -NOSTDLIB options
...
FullJetPsiCheckerTest has -JDK option
QuickJetPsiCheckerTest has +JDK option
FullJetPsiCheckerTest = QuickJetPsiCheckerTest with +JDK
QuickJetPsiCheckerTest = FullJetPsiCheckerTest with -JDK
2011-11-23 17:08:47 +04:00
Alex Tkachman
ba700ebdbe
test for unreproducable KT-528
2011-11-23 12:19:43 +02:00
Alex Tkachman
b8f942857b
KT-594 Array.get/set intrinsic
2011-11-23 11:56:47 +02:00
Alex Tkachman
8c842a6d5c
KT-529 wrong naming of anonimous classes
2011-11-23 11:20:33 +02:00
Alex Tkachman
1c6c5d2bdc
test for unreproducable kt533
2011-11-23 10:14:13 +02:00
Alex Tkachman
cb37f7b56f
ability to test stdlib
2011-11-23 09:56:20 +02:00
Alex Tkachman
f38fe544ef
test for compilation of stdlib
2011-11-22 15:16:59 +02:00
Alex Tkachman
8eabc2978e
KT-581 wrong implicit receiver for intrinsic method call
2011-11-22 12:57:24 +02:00
Alex Tkachman
efceb12f3b
rewrite of closure capturing for object literals
2011-11-22 12:35:42 +02:00
Alex Tkachman
159865d751
KT-560 - no type coertion for fields
2011-11-22 09:09:51 +02:00
Alex Tkachman
f6426bc6d4
primitive iterators
2011-11-20 11:05:40 +02:00
Alex Tkachman
abb15a85d6
KT-434 test and ability to supply full JDK for compiler tests
2011-11-19 07:01:58 +02:00
Alex Tkachman
50edc9750b
KT-535 no need in outer type info for class object
2011-11-18 13:38:38 +02:00
Alex Tkachman
b054ccefdb
KT-518 - array like expression via intrinsic method
2011-11-18 12:10:08 +02:00
Alex Tkachman
c896206284
commented test case for KT-285
2011-11-18 08:21:36 +02:00