Commit Graph

16 Commits

Author SHA1 Message Date
Evgeny Gerashchenko b0c0173924 Removed test for KT-1666, since navigation to standard libraries is working normally now (instead of navigation to the same source). 2012-05-12 21:56:45 +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
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
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
Nikolay Krasko 4d19fd05b1 KT-1702 Renaming file causes "Operation not supported" and invalid imports
(Rename problem was caused because of invalid reference to file from package. Fix contains:
 - Change structure of references in package expression - last part is also a reference now
 - Resolve packages to expression but not to files)

  #KT-1702 fixed
2012-04-06 14:46:23 +04:00
Svetlana Isakova cd6f3139f0 Changed scope for initializer of extension property /*not to resolve things like val List.length = size() */ 2012-03-28 13:14:35 +04:00
James Strachan eb3aac9acb refactored std.* package to be kotlin.*. Due to KT-1381 I had to move the functions from kotlin.test into the stdlib for now (I made them not depend on JUnit for now) 2012-03-03 12:11:06 +00:00
svtk 70d0cd882b KT-650 Prohibit creating class without constructor 2012-01-24 16:58:29 +04:00
Nikolay Krasko 5613cb90f9 KT-1036 JetFile -> PsiJavaFile cast problem 2012-01-24 15:00:07 +04:00
svtk 7fae503a38 KT-1080 Don't use previously imported packages while resolving import references 2012-01-20 11:58:17 +04:00
Stepan Koltsov b22ec83b15 split ResolveToJava.jet into smaller test 2011-12-31 00:53:28 +04:00
Andrey Breslav f45c6171ba Resolve test data fixed 2011-12-27 14:17:23 +04:00
Andrey Breslav f52eae71d0 GreatSyntacticShift: 'namespace' -> 'package' 2011-12-25 15:51:59 +04:00
Andrey Breslav 46832aaa5d GreatSyntacticShift: Resolve test data fixed 2011-12-21 11:08:31 +02:00
Andrey Breslav fb971ff7cb Tests moved to appropriate locations 2011-10-21 13:37:14 +04:00
Dmitry Jemerov ec6dec0d37 separate compiler and plugin tests 2011-10-20 16:21:18 +02:00