Commit Graph

1592 Commits

Author SHA1 Message Date
Evgeny Gerashchenko e96d8ef475 Fixed test. 2013-02-12 19:06:44 +04:00
Andrey Breslav 4a17a7ef26 'storage' package created 2013-02-12 14:48:49 +04:00
Andrey Breslav 8d92b8a42a 'declarations' package created 2013-02-12 14:48:48 +04:00
Andrey Breslav fb87a560fb KotlinCodeAnalyzer interface extracted 2013-02-12 14:48:48 +04:00
Andrey Breslav 109c47645b Make sure that the class object class is not accessible from Kotlin 2013-02-11 16:20:32 +04:00
Andrey Breslav 766a33aaa1 Assertion fixed 2013-02-11 16:18:22 +04:00
Nikolay Krasko 9f1e808255 Remove dangling commas from generated tests 2013-02-11 16:09:25 +04:00
Nikolay Krasko 9dedc6d2a9 KT-1998 Strange "Overload resolution ambiguity"
#KT-1998 Fixed
2013-02-11 16:09:24 +04:00
Nikolay Krasko 54ae3afcde KT-880 Overload resolution ambiguity
#KT-880 Fixed
2013-02-11 16:09:23 +04:00
Mikhael Bogdanov c61c8d7fa0 Compilation Exception - remove duplicated this on stack
#KT-3114 Fixed
2013-02-11 15:19:49 +04:00
Alexander Udalov 620143ae5b Add test on bytecode text
Test data should be a Kotlin source file with zero or more comments e.g. of
the form: '// 1 INVOKEVIRTUAL'. The test then checks that the generated
bytecode for this file contains exactly one occurrence of the string
'INVOKEVIRTUAL'
2013-02-11 02:01:43 +04:00
Alexander Udalov fe96a0172d Move blackBox() methods to AbstractBlackBoxCodegenTest 2013-02-11 02:01:43 +04:00
Alexander Udalov b485c7ae26 Switch class loading logic in blackBoxWithJava tests
BoxWithJava tests now by default are loaded with the classloader which has
test's classpath in itself, as in the former ClassPathInTheSameClassLoaderTest
2013-02-11 02:01:42 +04:00
Alexander Udalov 22bf8b25b8 Autogenerate codegen multi-file tests
Based on boxMultiFile/ directory
2013-02-11 02:01:42 +04:00
Alexander Udalov a61b3ec461 Move multi-file codegen testData to boxMultiFile/
There'll be an auto-generated test over this directory
2013-02-11 02:01:42 +04:00
Alexander Udalov 544aad390d Delete StdlibTest and StdlibTestForever
Move remaining tests to AnnotationGenTest (where they did belong to in the
first place)
2013-02-11 02:01:42 +04:00
Alexander Udalov 90d255e7da Simplify tests on not-null assertions
No need to call blackBoxFile() on a useless test data file. Also creating
environment logic is simplified
2013-02-11 02:01:41 +04:00
Alexander Udalov 30203383a4 Delete unneeded abstract test class, regenerate tests 2013-02-11 02:01:41 +04:00
Alexander Udalov 9df3c22097 Kill blackBoxFile()
If your test is supposed to use blackBoxFile(), maybe it should be placed into
box/boxWithStdlib directory
2013-02-11 02:01:41 +04:00
Alexander Udalov 31231fe18b Move JdkAnnotationsTest to boxWithStdlib 2013-02-11 02:01:41 +04:00
Alexander Udalov f994c9924f Move FullJdk tests to boxWithStdlib 2013-02-11 02:01:41 +04:00
Alexander Udalov d23f82177f Generate codegen blackbox tests with stdlib 2013-02-11 02:01:40 +04:00
Alexander Udalov 714708eac7 Delete generated test cases, move testData to boxWithStdlib 2013-02-11 02:01:40 +04:00
Alexander Udalov b311255d96 Extract junit testcase, delete unneeded code 2013-02-11 02:01:40 +04:00
Alexander Udalov 8a605b3884 Codegen tests: move stdlib tests to boxWithStdlib 2013-02-11 02:01:40 +04:00
Alexander Udalov 83b93071d3 Fix over-optimized comparison with null 2013-02-11 02:01:39 +04:00
Svetlana Isakova 27d7a159b1 regenerated tests 2013-02-08 15:44:28 +04:00
Svetlana Isakova ff4a9fdab3 rename
ResolveMode enum to {TOP_LEVEL_CALL, NESTED_CALL}
 completeValueArgumentsInference to completeNestedCallsInference
2013-02-08 15:10:43 +04:00
Svetlana Isakova d447c90b13 added tests for function literals faster resolve 2013-02-08 15:10:42 +04:00
Svetlana Isakova 3eee19578a complete inference for inner calls after resolve&inference of outer call finishes
deferredComputationsForArguments stored in ResolvedCallImpl,
'completeValueArgumentsInference' completes inference for inner calls recursively
2013-02-08 15:10:42 +04:00
Svetlana Isakova 170a3ad718 getQualifiedExpressionTypeInfo moved to CallExpressionResolver
CallExpressionResolver made a component
2013-02-08 15:10:40 +04:00
Svetlana Isakova 8f59172f27 use declared upper bounds in type inference (not just check them)
- simple cases supported
#KT-2856 fixed
2013-02-08 15:10:39 +04:00
Svetlana Isakova da4f1aec1d KT-422 Tune literal typing rules so that varargs overloaded by primitive types work
#KT-422 fixed
2013-02-08 15:10:39 +04:00
Evgeny Gerashchenko d60c495995 Extracting test name from regex matcher. 2013-02-07 21:39:22 +04:00
Evgeny Gerashchenko e65ca47d98 Regenerated tests. 2013-02-07 21:39:22 +04:00
Evgeny Gerashchenko 3cf2289687 Matching test files by regex instead of extension. 2013-02-07 21:39:22 +04:00
max-kammerer 843991083d For namespaces with multiple files keep 'Compiled from' information empty 2013-02-07 18:00:53 +04:00
Andrey Breslav 0b4b87fc3a KT-3307 Compiler exception trying to call Java method
#KT-3307 Fixed
2013-02-07 16:44:13 +04:00
Natalia.Ukhorskaya 1749e3298c Method from java overridden in kotlin should have kotlin visibility 2013-02-06 21:54:22 +04:00
Natalia.Ukhorskaya 11273f3035 Implement package protected visibility 2013-02-06 21:54:19 +04:00
Natalia.Ukhorskaya 88e3b9e190 Add codegen tests for package visibility 2013-02-06 21:54:18 +04:00
Alexander Udalov 64bc79aaac Fix safe calls codegen for nullable generic 2013-02-06 17:54:30 +04:00
Alexander Udalov 433660b2ce Fix codegen of !! for nullable generics 2013-02-06 17:54:29 +04:00
Alexander Udalov 75f09b7527 Fix codegen of as-casts for nullable generics 2013-02-06 17:54:28 +04:00
Alexander Udalov 70f67c7993 Fix elvis expression in case of nullable generic 2013-02-06 17:54:27 +04:00
Alexander Udalov 8697adb28a Fix generic data class hashCode for null
Null may come from everywhere, so we always check for it (when the property's
type is not primitive)
2013-02-06 17:54:26 +04:00
Alexander Udalov 1f4dd8cd33 Add CodegenUtil.isNullableType(), fix assertions
JetType.isNullable() is not accurate when the type denotes a type parameter:
a parameter can be not null (isNullable=false), but its upper bound can be
nullable (<T: Any?>), so null may appear in the value of such type. Therefore
it's preferred to use a special check (isNullableType()) in codegen from now on

Do not generate assertion for parameters of not-null types which have a
nullable upper bound + the same with Java method calls

Also fix Intrinsics class internal name in tests

 #KT-3313 Fixed
2013-02-05 21:52:29 +04:00
Wojciech Lopata 3930d2ca33 Not including empty testcases in suite.
That was sometimes resulting with IDE displaying incorrect number of tests in single run.
2013-02-05 17:55:37 +04:00
Alexander Udalov 8eb6047972 Fix assertions generation for substituted members 2013-02-05 16:26:56 +04:00
Evgeny Gerashchenko 25dc5b5991 Checking redundant projections in jdk annotations. 2013-02-04 16:16:08 +04:00