Evgeny Gerashchenko
7465e260b6
Disabled some test cases in lazy resolve tests until the latter supports inherited visibility (reported KT-2285).
2012-06-16 19:38:20 +04:00
Evgeny Gerashchenko
07109dc8ba
Modified NamespaceComparator, so it also checks for visibilities and for getter/setter visibilities. This broke a lot of tests, which will be fixed in next commits.
2012-06-16 15:39:36 +04:00
Evgeny Gerashchenko
221e412ba7
Visibilities of property accessors were not resolved for properties overriding others. They had "internal" visibility after analysis passed.
2012-06-16 14:36:05 +04:00
Stepan Koltsov
3a9f6c0928
DescriptorMatcher
2012-06-16 06:44:15 +04:00
Stepan Koltsov
7116beb95a
JetScope.get* return Collection, not Set
2012-06-16 06:44:12 +04:00
Nikolay Krasko
5f3c3d7e2b
Fix test for Windows by converting internal line separators too
2012-06-15 17:19:17 +04:00
Nikolay Krasko
3c1fb3951b
Move IfNotParsed interface to separate class
2012-06-15 16:20:03 +04:00
Nikolay Krasko
c159bc3a8c
Stubs - Extract interface for JetElement and JetExpression (Stub psi element should extend StubBasedPsiElementBase but JetElement extended ASTWrapperPsiElement)
2012-06-15 16:07:07 +04:00
Stepan Koltsov
1652d1c009
clean context to analyze next file
...
so REPL can be reused after error
this patch adds one more ugly hack to REPL
2012-06-14 18:30:49 +04:00
Stepan Koltsov
1c306eefd8
test for repl evaluation exception
2012-06-14 18:30:49 +04:00
Stepan Koltsov
970c2ae1f9
do not exit repl if something went wrong
2012-06-14 18:30:49 +04:00
Natalia.Ukhorskaya
3e777da3ba
Fix line separators in tests for windows
2012-06-14 17:39:42 +04:00
Stepan Koltsov
a46bd18103
normalize strings in CliTest to fix test on windows
2012-06-14 16:33:44 +04:00
Stepan Koltsov
8c4ca5022d
code conventions
2012-06-14 16:33:43 +04:00
Stepan Koltsov
d0cd37528a
move some cli tests from CompilerSmokeTest to CliTest
2012-06-14 16:05:16 +04:00
Stepan Koltsov
40fe33045d
cli test template
2012-06-14 15:29:17 +04:00
Stepan Koltsov
4e99edccaa
TmpdirRule
...
junit4 @Rule to create tmp dir from idea SDK
2012-06-14 15:29:16 +04:00
Stepan Koltsov
9db8a63099
rename test cli.jvm.compiler to jvm.compiler
...
Tests has nothing to do with CLI
TODO: move codegen tests
2012-06-14 14:54:00 +04:00
Stepan Koltsov
13431c0f35
move TestCaseWithTmpdir* into test subpackage
2012-06-14 14:54:00 +04:00
Stepan Koltsov
1d0ef01eea
REPL overload resolution ambiguity
...
Fix overload resolution ambiguity in REPL. Note, resolution for
functions declared in script is very different from regular programs:
in scripts function declared later wins. See
functionOverloadResolutionAnyBeatsString for example.
#KT-2272 Fixed
2012-06-14 14:06:17 +04:00
Stepan Koltsov
441e975323
fix order of parameters in assert in ReplInterpreterTest
2012-06-14 14:06:17 +04:00
Andrey Breslav
a7aff72a4d
Enum test case extracted: testMethod added
2012-06-14 13:01:33 +04:00
Stepan Koltsov
87871d0f91
repl: do not print null is last expression type is unit
2012-06-13 22:43:11 +04:00
Stepan Koltsov
55ffd797a4
test imports work in the following lines of REPL
2012-06-13 22:32:36 +04:00
Andrey Breslav
4d0aad1347
Injector creation pulled up
2012-06-13 20:34:14 +04:00
Andrey Breslav
290a2a0620
AbstractLazyResolveTest extracted
2012-06-13 20:34:13 +04:00
Andrey Breslav
f4ac06a483
Test classes renamed to reflect what's happening in the tests
2012-06-13 16:31:41 +04:00
Andrey Breslav
8c73940808
Lazy resolve passes readJavaBinaryClass tests
2012-06-13 16:08:43 +04:00
Andrey Breslav
af3aa6133e
Customizable includeObjectMembers
2012-06-13 16:08:43 +04:00
Andrey Breslav
8b56d47af5
Generate test suites
2012-06-13 16:08:42 +04:00
Andrey Breslav
70a80e1436
Test generator facility factored out
2012-06-13 13:45:29 +04:00
Andrey Breslav
4d4444e863
Lazy resolve passes readKotlinBinaryClass tests
2012-06-13 13:25:34 +04:00
Stepan Koltsov
8dd1465371
pull script up in cli
2012-06-10 03:44:29 +04:00
Stepan Koltsov
35f1de468f
refactor compiler launcher
...
* method should not modify input
* replace String with File
* add @NotNull and @Nullable annotations
2012-06-10 03:44:29 +04:00
Stepan Koltsov
b0553ff651
properly handle empty lines in REPL
2012-06-09 23:25:41 +04:00
Stepan Koltsov
f11767319a
repl: fix two anonymous functions
2012-06-09 23:25:40 +04:00
Dmitry Jemerov
ba76e1467c
correct argument index for object that has outer this and closure arguments
...
#KT-1737 Fixed
2012-06-09 16:20:11 +02:00
Evgeny Gerashchenko
d5b32ba70e
KT-2206 ClassFormatError on loading class with property inherited from trait
...
#KT-2206 fixed
2012-06-09 17:13:38 +04:00
Evgeny Gerashchenko
208dd4e35d
Revert commit because two commits fixing separate bugs were accidentally stuck together. Will recommit bugfixes separately.
...
Revert "KT-2193 Nullability information lost for functions inherited from traits".
This reverts commit d60818fd3e .
2012-06-09 17:13:38 +04:00
Dmitry Jemerov
0a05197454
remove attempt to optimize using 'if' statement as the last one in a loop which created far more problems that it fixed
...
#KT-1978 Fixed
2012-06-09 15:14:33 +02:00
Andrey Breslav
f01b5ee55a
Formatter
2012-06-09 16:52:54 +04:00
Andrey Breslav
0e0bf60e90
Clarifying comment
2012-06-09 16:52:53 +04:00
Evgeny Gerashchenko
d60818fd3e
KT-2193 Nullability information lost for functions inherited from traits
...
#KT-2193 fixed
2012-06-09 16:46:37 +04:00
Dmitry Jemerov
c9125d3f59
correctly call properties on annotation classes
...
#KT-1932 Fixed
2012-06-09 14:48:04 +02:00
Andrey Breslav
d6f279926c
Lazy resolve: Support for imports and Java interop
2012-06-09 15:53:29 +04:00
Andrey Breslav
8358afbcd1
More diagnostic messages + output filter
2012-06-09 15:49:26 +04:00
Andrey Breslav
c55bf8600e
Fix rendering of error types
2012-06-09 13:41:49 +04:00
Stepan Koltsov
acac0eddc7
formatting
2012-06-08 21:36:49 +04:00
Dmitry Jemerov
102f5c60be
generating the body of the finally clause _four_ times is one time too many
...
#KT-1688 Fixed
2012-06-08 19:21:41 +02:00
Dmitry Jemerov
9eb2dd4bfe
test for fixed KT-1721
2012-06-08 18:51:03 +02:00