Commit Graph

6028 Commits

Author SHA1 Message Date
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
James Strachan 5b85e861b7 fixed bad source links in generated kdoc 2012-06-14 09:37:31 +01:00
Andrey Breslav bdae2021b5 Enum test case extracted 2012-06-14 12:36:12 +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
Stepan Koltsov 6384ee9393 test imports in scripts 2012-06-13 22:32:36 +04:00
Stepan Koltsov 4d06660243 parse imports in scripts 2012-06-13 22:32:36 +04:00
Nikolay Krasko 669d7c704c Overwrite slice bug - invalidate caches of headers resolve 2012-06-13 21:18:32 +04:00
Stepan Koltsov 5f3daa08ff fix compilation 2012-06-13 21:13:34 +04:00
Stepan Koltsov 1ca80f74fd better DeclarationDescriptorVisitor
* it is interface
* no methods for abstract classes
* DescriptorRenderer now uses it do not forget about anything
2012-06-13 21:11:08 +04:00
Stepan Koltsov a9d82880e0 remove unused code 2012-06-13 21:11:01 +04:00
Andrey Breslav bcb93751ae Support for properties defined by object declarations 2012-06-13 20:34:14 +04:00
Andrey Breslav acc658e9c1 Support properties declared in the primary constructor parameter list 2012-06-13 20:34:14 +04:00
Andrey Breslav 743cff4161 resolveToDescriptor() supported for:
* classes
* functions
* class objects
* type parameters
* packages
2012-06-13 20:34:14 +04:00
Andrey Breslav 2cd7d8505a Pointless TODO removed 2012-06-13 20:34:14 +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
Svetlana Isakova 56bd86f8aa frontend part of KT-1922
VerifyError: Default value of constructor parameter should be resolved to previous parameter, not to property of class
2012-06-13 20:19:55 +04:00
Stepan Koltsov dfd3aac900 ExceptionUtils.closeQuietly 2012-06-13 20:00:54 +04:00
Stepan Koltsov edad5c9266 merge analyzeBodies functions from JS and JVM backend 2012-06-13 19:53:08 +04:00
Stepan Koltsov 9290f55bad JavaDescriptorResolver is not needed for body resolver
* create InjectorForBodyResolve
* split ScriptDescriptor into ScriptDeclarationResolve and ScriptBodyResolver
2012-06-13 19:27:17 +04:00
James Strachan b571871a27 fixed mvn build (so that the mvn plugin can compile test cases) 2012-06-13 16:25:08 +01:00
James Strachan baa67175ce fixed broken test case 2012-06-13 16:16:45 +01:00
James Strachan 3765e85ca8 compile the assertions and a test case to QUnit on JS and got a working example to run the unit test case - yay! 2012-06-13 16:14:13 +01:00
pTalanov 9394e21208 Remove symbol added by accident into javalang.kt 2012-06-13 18:47:06 +04:00
pTalanov 7c1f670942 Remove exceptions from js.* package. Move them to java.lang . Import java.lang by default 2012-06-13 18:13:44 +04:00
Svetlana Isakova 2f0278d63b KT-2262 Cannot access protected member from inner class of subclass
#KT-2262 fixed
2012-06-13 17:03:04 +04:00
Andrey Breslav 15086258c0 Missing test data file added 2012-06-13 16:39:29 +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
Stepan Koltsov ca8ae7a4ae do not close output stream in writeToJar 2012-06-13 15:32:37 +04:00
Andrey Breslav 6112c77b22 Fixed nullability assertion that was accidentally made too strong 2012-06-13 13:59:36 +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
Andrey Breslav c658fbbb51 Fix import order: default imports come first (lowest priority) 2012-06-13 13:24:50 +04:00
Andrey Breslav 5e47b923b3 Support properties declared as primary constructor parameters 2012-06-13 13:22:09 +04:00
Andrey Breslav efb3df5ca2 Supporting fake overrides for properties and constructors for class objects 2012-06-13 12:32:42 +04:00
Andrey Breslav f2561046bf Name changed to match existing behavior of eager resolve 2012-06-13 12:32:42 +04:00
James Strachan e894054bba exclude the base class from being executed as a test case 2012-06-12 19:53:27 +01:00
James Strachan 60738b7b4f minor refactor of the JS test cases to ensure they don't collide in the generated JS code 2012-06-12 19:51:34 +01:00
James Strachan 74a138212e added support for public properties at the package level to kdoc 2012-06-12 16:14:56 +01:00
Stepan Koltsov a55c8f1a04 move trivial method from TopDownAnalyzer to BodyResolver 2012-06-12 18:50:41 +04:00
James Strachan 768469fb23 added support for generation of QUnit unit tests from Kotlin JUnit test cases 2012-06-12 12:48:14 +01:00
James Strachan f3986e428d describe how to have multiple IDEA installs 2012-06-12 11:44:53 +01:00
Stepan Koltsov 8dd1465371 pull script up in cli 2012-06-10 03:44:29 +04:00
Stepan Koltsov 7851101c0e do not write main if there's more than one main 2012-06-10 03:44:29 +04:00