Evgeny Gerashchenko
4be1e7d8d8
Checking redundant/conflicting projection kind in alt signatures.
2013-02-04 16:09:14 +04:00
Alexander Udalov
4ca522bf0e
Fix codegen of do-while condition
...
The condition of a do-while loop can use variables declared in the loop
(variables can only be declared inside a block). Previously this behaviour
caused crash because after the block was generated, all variables declared
inside that block were gone from myFrameMap
#KT-3280 Fixed
2013-02-04 15:30:38 +04:00
Alexander Udalov
7716feee71
Fix NPE in JetPsiUtil (EA-43298)
2013-02-04 15:27:30 +04:00
Nikolay Krasko
54e5fa5256
Imports resolution tests
2013-02-04 14:23:26 +04:00
Nikolay Krasko
d4e3a4f74d
Tests added for checking two-phase (classes and functions) import resolution
2013-02-04 14:23:22 +04:00
Nikolay Krasko
ee227f01b9
Add test for checking ambiguity for root package and the same package
2013-02-04 14:23:21 +04:00
Nikolay Krasko
f2e78d9064
Create scope with lazy import resolve
2013-02-04 14:23:21 +04:00
Nikolay Krasko
6141d0305a
Test for ImportPath and JetImportDirective coherence
2013-02-04 14:23:18 +04:00
Nikolay Krasko
83bc8d4f21
Centralize and cache creating import directives
2013-02-04 14:23:16 +04:00
Nikolay Krasko
8b60b07cc5
Refactoring: remove warnings
2013-02-04 14:23:15 +04:00
Andrey Breslav
79e27f2d90
Write vararg flag on value parameters
2013-01-31 22:05:56 +04:00
Evgeny Gerashchenko
e1b7126ae3
Replaced variance with projection kind.
2013-01-31 21:33:43 +04:00
Evgeny Gerashchenko
74771cb2db
KT-3302 Method that implements two differing interfaces are reported as "Incompatible types in superclasses"
...
#KT-3302 fixed
2013-01-31 21:33:42 +04:00
Alexander Udalov
2e64aac788
Add regression test for KT-3132
...
#KT-3132 Obsolete
2013-01-31 20:59:16 +04:00
Alexander Udalov
cfce055b37
Introduce fake light class for file of package
...
Fixes problems related to not working breakpoints (see comment at the top of
the class)
#KT-3291 Fixed
2013-01-31 20:43:47 +04:00
Andrey Breslav
bbde38a6dc
KT-1360 Vararg bug in front-end
2013-01-31 18:54:37 +04:00
Andrey Breslav
2d2c44ca9d
KT-2106 Mixed named and positional arguments should be allowed
...
#KT-2106 Fixed
2013-01-31 15:43:14 +04:00
Svetlana Isakova
ba9c455ea1
KT-3301 Inference with several supertypes fails
...
#KT-3301 fixed
2013-01-30 20:29:30 +04:00
Evgeny Gerashchenko
07a25a7757
Removed newline after copyrights in generated injectors.
2013-01-30 19:24:16 +04:00
Evgeny Gerashchenko
2ef63035f2
Added newline after copyrights in generated tests.
2013-01-30 19:24:16 +04:00
Evgeny Gerashchenko
57e985b7f1
Generated codegen tests for ranges.
2013-01-30 19:24:15 +04:00
Evgeny Gerashchenko
21c37951d6
Removed old range test which were spread all over the place.
2013-01-30 19:23:51 +04:00
Andrey Breslav
c2822fdad7
Declaration providers and resolve session are protected by a storage manager
2013-01-30 18:02:04 +04:00
Andrey Breslav
d31e53fa59
EA-41207 - IAE: NameUtils.requireIdentifier
...
Test data files renamed
2013-01-30 12:28:45 +04:00
Andrey Breslav
cd56b2f401
File extension filtering cleaned up in tests
2013-01-30 12:28:45 +04:00
Evgeny Gerashchenko
6c70c6c32a
Removed compiling builtins from tests.
2013-01-29 22:55:08 +04:00
Evgeny Gerashchenko
0ff3589bb9
Moved *Range.step() functions to stdlib.
2013-01-29 22:55:05 +04:00
Alexander Udalov
9007a6214a
Fix closure's reference to outer closure
...
#KT-3276 Fixed
2013-01-29 22:41:58 +04:00
Evgeny Gerashchenko
f4c91915bb
Fixed tests by running super.tearDown()
2013-01-28 20:20:37 +04:00
Evgeny Gerashchenko
52b7ee6447
Happy new year 2013!
2013-01-28 18:58:08 +04:00
Alexander Udalov
0b1fe9c611
Generate black box with java codegen tests
2013-01-28 18:20:44 +04:00
Alexander Udalov
2904d1745b
Remove generated black box java codegen test
...
Move all testData to boxWithJava/
2013-01-28 18:20:41 +04:00
Alexander Udalov
86938f57b1
Remove codegen tests with Java, move testData to boxWithJava/
...
There'll be a single generated test class like
BlackBoxCodegenTestGenerated
2013-01-28 18:20:37 +04:00
Alexander Udalov
10c5949199
Extract some codegen tests to black box testData
2013-01-28 18:20:33 +04:00
Alexander Udalov
f7e0b06c2f
Generate black box codegen tests
2013-01-28 18:20:29 +04:00
Alexander Udalov
5313cf3bf0
Fix failing tests, copy testData
...
Some tests were using files that others called blackBoxFile() on. Since
those files are now moved to box/, copy them back to make the tests pass
2013-01-28 18:20:25 +04:00
Alexander Udalov
7ce62a5b64
Remove generated codegen tests, move all testData to box/
...
A single test file will be generated out of box/ directory
2013-01-28 18:20:21 +04:00
Alexander Udalov
41a416da60
Move blackBoxFile() testData to box/ directory
...
Delete all test methods (and empty test classes), since they'll be
auto-generated
2013-01-28 18:20:17 +04:00
Alexander Udalov
ecbb2f10ef
NamespaceGenTest doesn't require stdlib
2013-01-28 18:20:12 +04:00
Alexander Udalov
9bf73cf4b3
Extract static functions to CodegenTestUtil
...
Add Nullable/NotNull annotations
2013-01-28 18:18:08 +04:00
Alexander Udalov
63aacc416f
Extract classPathInTheSameClassLoader into a separate test
...
- class loader is now always created as if classPathInTheSameClassLoader
= false, which was the case of every codegen test except kt2781, which
is extracted into a separate file
- testNoClassObjectForJavaClass() is moved from StdlibTest since it has
a custom createClassLoader() which doesn't work well in a java-interop
case
- get rid of generateClassesInFileGetState
- several similar methods are inlined
2013-01-28 18:16:40 +04:00
Alexander Udalov
639aa9e218
Codegen tests: don't generate twice when a test fails
2013-01-25 23:06:43 +04:00
Alexander Udalov
df5b809b46
Refactor CodegenTestCase
...
- prohibit main(Array<String>) in favor of box(): String
- move all script-related code to ScriptGenTest
- remove unused environment-creating methods
- inline trivial methods & other minor stuff
2013-01-25 23:06:43 +04:00
Alexander Udalov
74467df3ef
Sort out blackBox*() methods
...
- get rid of blackBox(), extract tests into files
- delete single-file usages of blackBoxMultiFile()
- inline some other blackBox methods
- suppress exception in blackBoxWithJava()
2013-01-25 23:06:42 +04:00
Alexander Udalov
c8f73cfdae
Remove codegen tests out of JetNpeTest
2013-01-25 23:06:42 +04:00
Alexander Udalov
aa4e69de11
Remove obsolete special files from android tests
2013-01-24 21:12:28 +04:00
Alexander Udalov
0090ce3322
Refactor codegen tests: no special box() result
...
box() shall always return "OK"
2013-01-24 21:12:28 +04:00
Alexander Udalov
de37f73c8d
Remove tests on RTTI
...
It was never implemented
2013-01-24 21:12:27 +04:00
Alexander Udalov
0df71bd696
Refactor codegen tests
...
- initialize environment only once in setUp()
- add comments on why some tests are disabled
- modify and rename some tests
- re-enable now working tests
- extract some tests into files with box()
- remove useless 'throws' declarations and commented code
2013-01-24 21:12:27 +04:00
Alexander Udalov
99827d10a8
Rename *.jet -> *.kt in codegen tests
2013-01-24 21:12:27 +04:00