Commit Graph

1615 Commits

Author SHA1 Message Date
Wojciech Lopata 75528e0a4a KT-3378 "Type mismatch on override" not present when the initializer is syntactically incorrect
#KT-3378 Fixed
2013-03-06 15:18:37 +04:00
Evgeny Gerashchenko 0f83c8297e Added corner case test for int range iteration. 2013-03-05 14:58:43 +04:00
Evgeny Gerashchenko 3ec9cd817f Regenerated test data. 2013-03-05 13:56:04 +04:00
Evgeny Gerashchenko 20fa0a3cd1 Added test with class referencing self in upper bound. 2013-03-05 13:33:11 +04:00
Evgeny Gerashchenko 1d6836f6aa Added CLI tests with non-existing paths. 2013-03-04 17:33:59 +04:00
Evgeny Gerashchenko e67e992bb0 Loading from Java: inner subclass of super's inner. 2013-03-04 17:33:58 +04:00
Evgeny Gerashchenko 3c7d413456 Disabled super functions checking on error types. 2013-03-04 17:33:58 +04:00
Mikhael Bogdanov b3ec87f956 ClassObject instance field refactoring 2013-03-04 16:42:55 +04:00
Andrey Breslav db99492b9c Merge pull request #215 from lopekpl/KT-1019
KT-1019 recover from missing parentheses in function declaration
2013-03-01 01:24:26 -08:00
Mikhael Bogdanov 6e1e495397 KT-3374 Wrong this@method receiver 2013-02-28 15:22:35 +04:00
Wojciech Lopata bc59ed75ca KT-1019 parser should recover from missing parentheses in function declaration
#KT-1019 Fixed
2013-02-28 12:00:33 +01:00
Mikhael Bogdanov 1e4536a914 For expression recovery 2013-02-26 18:34:43 +04:00
Svetlana Isakova 8ef067be77 KT-3344 InternalError in compiler when type arguments are not specified
#KT-3344 fixed
2013-02-25 18:19:52 +04:00
Andrey Breslav c5d1e04d41 EA-36903 - ISE: JavaTypeTransformer$.visitClassType
Using error types as type arguments when there's an error in a type instantiation in Java code
2013-02-25 16:14:07 +04:00
Wojciech Lopata 23ce144f9d SUPERTYPE_NOT_INITIALIZED_DEFAULT error removed
It was merged with SUPERTYPE_NOT_INITIALIZED.
2013-02-21 17:50:52 +01:00
Mikhael Bogdanov 029b2d9770 Test fixes for 'New diagnostic error for ambiguous object expression type' 2013-02-19 17:56:56 +04:00
Mikhael Bogdanov 1662c5cb75 New diagnostic error for ambiguous object expression type 2013-02-19 17:56:55 +04:00
Mikhael Bogdanov 1b2da6b558 Write proper enclosingMethod/enclosingClass information to bytecode 2013-02-19 17:56:55 +04:00
Evgeny Gerashchenko 543a2821e4 Disabled assertion when return types are incompatible (incomplete/invalid Java code).
EA-43482 - ISE: JavaFunctionResolver.checkFunctionsOverrideCorrectly
2013-02-19 17:45:15 +04:00
Evgeny Gerashchenko b1c13a25be Added test with overriding Object[] with T[]
EA-43482 - ISE: JavaFunctionResolver.checkFunctionsOverrideCorrectly
2013-02-19 17:25:36 +04:00
Evgeny Gerashchenko 48113f036f Fixing signature when overriding with erased signature.
EA-43482 - ISE: JavaFunctionResolver.checkFunctionsOverrideCorrectly
2013-02-19 17:25:35 +04:00
Evgeny Gerashchenko cd06bdedfe Added propagation error message when array of subtype is used in return type of sub method.
EA-43482 - ISE: JavaFunctionResolver.checkFunctionsOverrideCorrectly
2013-02-19 17:25:34 +04:00
Evgeny Gerashchenko 1de5da1e8a Fixed misused "variance" word. 2013-02-19 17:24:14 +04:00
Andrey Breslav 53b2bbad68 Discover class objects for light class generation in the compiler
#KT-3337 In Progress
LightClasses: class object's property getter unresolved in Java, but compiles OK
2013-02-18 16:05:41 +04:00
Alexey Sedunov 1f8d42ab49 Fix nullability check (in case of explicitly nullable types constructed from ype variables) 2013-02-13 18:23:37 +04:00
Evgeny Gerashchenko b9e5704057 Updated test data and stdlib sources. 2013-02-13 18:08:37 +04:00
Evgeny Gerashchenko 18d6e86e60 KT-3341 Prohibit val/var keywords for catch parameters
#KT-3341
2013-02-13 18:08:36 +04:00
Evgeny Gerashchenko b1cb8edd18 KT-3181 Prohibit val/var keywords for function parameters
#KT-3181
2013-02-13 18:08:36 +04:00
Evgeny Gerashchenko 808dbd160c KT-3182 Prohibit val/var keywords at for-loop counter.
#KT-3182 fixed
2013-02-13 18:08:36 +04:00
Evgeny Gerashchenko 882c2cb28d Added tests with NaN ends to codegen tests. 2013-02-13 18:08:36 +04:00
Evgeny Gerashchenko 5a4ae00970 Added range iteration test with non-literal ranges. 2013-02-13 18:08:33 +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
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 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 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 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 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
Andrey Breslav 1670831269 Test fixed after ABI version change 2013-02-10 16:06:30 +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 27e6dad307 test improved 2013-02-08 15:10:43 +04:00