Commit Graph

640 Commits

Author SHA1 Message Date
Andrey Breslav 3ee8c5e469 A warning added: parameter names disagree upon override
This should be an error, but there is an issue with Java interop: Java parameters may change names or not have them.
2012-04-27 21:33:48 +04:00
Andrey Breslav ebfb1ec792 KT-1558 Exception while analyzing
KT-1558 Fixed
2012-04-27 20:05:42 +04:00
Andrey Breslav d3ceaf7656 Copy-paste bug fixed
The test is supposed to check classes and objects
2012-04-27 20:05:42 +04:00
Stepan Koltsov fc732ef477 ReadJavaBinaryClassTest: find java files, not kotlin files 2012-04-27 19:09:40 +04:00
Stepan Koltsov 225c9b4fa0 java classes should extend java.lang.Object
#KT-1121 fixed
2012-04-27 16:16:02 +04:00
Andrey Breslav d67cc468d8 KT-1862 Wrong MANY_IMPL_MEMBERS_NOT_IMPLEMENTED when trait extends class
#KT-1862 Fixed
2012-04-27 10:58:27 +04:00
Andrey Breslav 058e4b833b Checks for default parameter value consistency
Inheriting default values from multiple superclasses is prohibited
2012-04-26 17:33:16 +04:00
Andrey Breslav 3a56b7905d Default parameter values are not allowed in overriding functions 2012-04-26 17:33:15 +04:00
Stepan Koltsov 4a1c36d733 fix complex case of recursion in JavaDescriptorResolver
#KT-1804
2012-04-24 22:14:01 +04:00
Andrey Breslav c686184847 KT-1860 Resolve annotations of function parameters
#KT-1860 Fixed
2012-04-24 21:53:23 +04:00
Andrey Breslav 789ff0b273 KT-1838 Constructor with a vararg
Resolution for properties declared as primary constructor parameters used to ignore the varargs annotation.
 #KT-1838 Fixed
2012-04-23 14:16:07 +04:00
Evgeny Gerashchenko e298391645 Fixed tests.
#KT-1799 fixed
2012-04-20 22:16:20 +04:00
Evgeny Gerashchenko 9bec7b5e9d Merge branch 'diagnostics'
Conflicts:
	compiler/cli/src/org/jetbrains/jet/compiler/CompileSession.java
	compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/Errors.java
2012-04-20 21:58:05 +04:00
Evgeny Gerashchenko 0f0330a4b4 Added rendering vararg keywords and valid parameter type in this case.
#KT-1840 fixed
2012-04-20 20:44:09 +04:00
Evgeny Gerashchenko 90ac45f3f9 Added extra space after function type arguments list in DescriptorRenderer. Added test. 2012-04-20 20:44:08 +04:00
Evgeny Gerashchenko 1f7c435a24 Removed val/var soft keywords in renderer for functions 2012-04-20 20:44:08 +04:00
Andrey Breslav 45a0873afa KT-1835 cannot call a Java API which has a method from(String) and from(String...)
The problem was in the "more specific" relation, that didn't pay enough attention to varargs.
The correct behavior is in the spirit of JLS 15.12.2 (as of Java 5):
 * a fixed-arity function always wins over a variable-arity functions
 * if two vararg functions are compared, their parameters are checked for subtyping.
  In the latter case, the candidates may have different number of formal parameters, so we
  compare the matching parts and then check the rest against the vararg parameter.

 #KT-1835 Fixed
2012-04-20 19:10:10 +04:00
Evgeny Gerashchenko 85ce85383b Added rendering variance for type parameters in DescriptorRenderer. 2012-04-19 18:46:45 +04:00
Evgeny Gerashchenko d28aed6494 Improved positioning for PROJECTION_ON_NON_CLASS_TYPE_ARGUMENT. 2012-04-19 16:25:48 +04:00
Nikolay Krasko aa4e4623d4 KT-1630 Do not select automatically completion proposal in definition of lambda parameters
#KT-1630 fixed
2012-04-19 16:06:15 +04:00
Svetlana Isakova d245a10d02 KT-1822 Error 'cannot infer visibility' required
#KT-1822 fixed
2012-04-19 16:01:46 +04:00
Svetlana Isakova 558d1a0e2f KT-1680 Warn if non-null variable is compared to null
#KT-1680 fixed
2012-04-19 15:36:44 +04:00
Evgeny Gerashchenko 99acd9cdf0 Fixed rendering "defined in ..." DescriptorRenderer, now it doesn't render "<module>.<root>" 2012-04-19 15:22:01 +04:00
Stepan Koltsov bfdba9cebc test for inner class of generic class inheriting another generic class
actually fixed in Idea in 4afdd61d8dcb846994166ed8f30a7515e9661d56. Thanks, Max!
2012-04-19 14:08:50 +04:00
Stepan Koltsov 7eb653ea22 ReadKotlinBinaryClassTest: inner class extend inner class 2012-04-19 14:05:40 +04:00
Stepan Koltsov cd8e275cf4 JavaDescriptorResolver: resolve annotation annotated by self 2012-04-19 14:05:38 +04:00
Svetlana Isakova 77dad4fbfb incomplete code from EA 2012-04-18 22:04:55 +04:00
Svetlana Isakova 5c32f5f0e7 KT-1821 Write test for ITERATOR_AMBIGUITY diagnostic
#KT-1821 fixed
2012-04-18 22:04:28 +04:00
Svetlana Isakova ae4b391c8e KT-1820 Write test for ASSIGN_OPERATOR_AMBIGUITY
#KT-1820 fixed
2012-04-18 22:03:55 +04:00
Svetlana Isakova 1fa4698611 KT-1778 Automatically cast error
#KT-1778 fixed
2012-04-18 20:42:55 +04:00
Svetlana Isakova 08e18e5d9c KT-1806 accessing private member in object class/anonymous object is not highlighted as error
#KT-1806 fixed
2012-04-18 19:59:34 +04:00
Svetlana Isakova d08bb4e6ec test for KT-1805 Better diagnostic for access to private field of parent class
#KT-1805 Fixed
2012-04-18 19:02:24 +04:00
Svetlana Isakova 1ed79d534f KT-151 Inherit visibility when overriding
#KT-151 Fixed

Visibilities.INHERITED constant added (occurs only during resolve), changed after overridden descriptors resolve
Fake descriptors are created for invisible properties as well (is necessary for better error reporting)
2012-04-18 19:02:24 +04:00
Svetlana Isakova b5bf4a626c Reverted explicitly specifying visibility modifier while override 2012-04-18 19:02:24 +04:00
Svetlana Isakova 8d6d292150 more tests for resolve order 2012-04-18 19:02:24 +04:00
Svetlana Isakova 84f32c99ae incomplete assignment bug from EA fixed 2012-04-17 15:00:04 +04:00
Svetlana Isakova 4d62fbad2b changed resolution order: first priority is 'local extensions; members; nonlocal extensions', than by implicit receivers (before was vice versa) 2012-04-17 14:05:45 +04:00
James Strachan 6ac4169003 fixes broken tests - bad james! 2012-04-17 10:48:58 +01:00
Andrey Breslav 0f98c281ab KT-1781 Can't distinguish between two constructors
#KT-1781 Fixed

 Now, if foo() and foo(vararg bar) both match the call site, the first one is preferred
2012-04-16 16:14:08 +04:00
Evgeny Gerashchenko 03fac49191 Got rid of storing diagnostic messages inside them: now they are generated on demand. 2012-04-13 19:31:45 +04:00
Stepan Koltsov c08965c336 split GenericIterator test 2012-04-09 22:31:57 +04:00
Stepan Koltsov abfd03cae3 descriptor name cannot be empty string
* add assertion
* fix tests
* #KT-1748 Fixed
2012-04-09 22:31:56 +04:00
Nikolay Krasko 4ec080f71f KT-1666 Invoking "Go to Declaration" for String type offers two variants - Temp boring fix
#KT-1666 fixed
2012-04-08 20:38:11 +04:00
Evgeny Gerashchenko aec021e668 Implemented better rendering for parameters with default values in decompiler and descriptor renderer.
#KT-1582 fixed
2012-04-08 19:59:53 +04:00
Stepan Koltsov 611b04025d lost property from superclass 2012-04-08 03:18:38 +04:00
Stepan Koltsov 16f333af9f ReadKotlinBinaryClassTest: override val test 2012-04-08 02:08:24 +04:00
Svetlana Isakova 2de69d8cd8 stop resolution if ambiguity is found 2012-04-06 20:42:51 +04:00
Evgeny Gerashchenko f6d8771f79 Added vararg parameter and parameter with default value to DescriptorRendererTest. 2012-04-06 20:04:57 +04:00
Evgeny Gerashchenko 83bd57184d Added test cases for classes, its members, function and tuple types to DescriptorRendererTest. 2012-04-06 20:04:57 +04:00
Evgeny Gerashchenko da9973a822 Added rendering visibility in DescriptorRenderer. 2012-04-06 20:04:57 +04:00