Commit Graph

158 Commits

Author SHA1 Message Date
Alex Tkachman 43885f0955 KT-769, KT-773 wrong compilation of when 2011-12-07 20:34:48 +02:00
Stepan Koltsov c76463256b refactor tests 2011-12-07 22:27:42 +04:00
Stepan Koltsov b2917154e0 extract file utils 2011-12-07 22:27:38 +04:00
Stepan Koltsov a16874be6f Revert "refactor tests". I've broken tests again.
This reverts commit 8db2617701.
2011-12-07 22:06:35 +04:00
Stepan Koltsov 8db2617701 refactor tests 2011-12-07 21:01:51 +04:00
Stepan Koltsov 4cd02c983d CompileJavaAgainstKotlinTest
Test is:

1. find pairs of kotlin/java files in compiler/testData/compileJavaAgainstKotlin
and for each pair

2. compile kotlin file

3. compile java file with kotlin .class in classpath

4. check everything is OK
2011-12-07 20:32:58 +04:00
Andrey Breslav 242c59ffa6 Test fixed after adding debug info 2011-12-07 19:55:44 +04:00
Alex Tkachman 2d94248731 accidentally commited not finished test commented 2011-12-07 11:54:23 +02:00
Alex Tkachman d272979b09 thread ring benchmark and related bug fixes (non null array creation and wrong signature of enclosing class) 2011-12-07 11:51:50 +02:00
Stepan Koltsov bf54dc5453 test nullable return types are read from .class files 2011-12-06 23:25:26 +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
Alex Tkachman ecb323a13e KT-756 incorrect intrinsics on nullable numbers 2011-12-06 15:03:26 +02:00
Stepan Koltsov 29ebb124c8 working on reading class data from .class files 2011-12-06 16:54:52 +04:00
Alex Tkachman 5dff5bded9 KT-757 wrong inv() for long 2011-12-06 13:29:28 +02: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
Alex Tkachman 627c2186e9 test for obsolete KT-684 2011-12-05 17:29:43 +02:00
Alex Tkachman b253529e27 KT-753 shift operations have second arg Int 2011-12-05 17:13:10 +02:00
Alex Tkachman 91549ed359 KT-752 RangeTo intrinsic called with receiver 2011-12-05 16:55:17 +02:00
Alex Tkachman a145fc0afc some debug output off 2011-12-03 20:58:49 +02:00
Alex Tkachman 1135c8ce7a KT-737 compareTo() intrinsic 2011-12-03 20:51:56 +02:00
Alex Tkachman 90367ab138 optimized ?. in non-nullable case 2011-12-03 19:26:21 +02:00
Alex Tkachman d8e6c18cfe optimized sure for non-nullable types 2011-12-03 18:56:54 +02:00
Alex Tkachman d33d1367de KT-711 primitive value in left side of elvis operator 2011-12-03 18:22:18 +02:00
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