Commit Graph

145 Commits

Author SHA1 Message Date
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
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