Commit Graph

962 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 2f89352d80 Added AUTOCAST mark when expression is used as for-loop iterable. 2012-09-14 16:12:16 +04:00
Nikolay Krasko 7ad0fd56f3 EA-39175 Completion fails if MultiDeclaration is present on top level in file 2012-09-13 21:06:18 +04:00
Nikolay Krasko a95ba27b7d KT-2758 Errors in lazy resolve: Unknown TYPEDEF
Unknown declaration: TYPEDEF: Unknown declaration: TYPEDEF
 #KT-2758 Fixed
 EA-38287 Fixed
2012-09-13 21:06:18 +04:00
Nikolay Krasko 40f559bcdc Additional test for wrapping functions 2012-09-13 21:06:17 +04:00
Evgeny Gerashchenko 08fc54d969 Fixed test data after IDEA update. 2012-09-13 19:07:58 +04:00
Svetlana Isakova 0d1790a4f4 alternative signature applies for names
mapped in standard library (and differs from auto transformed Java signature)
e.g.Collections.copy(MutableList, List)
2012-09-13 17:28:31 +04:00
Natalia.Ukhorskaya 60bdae9d75 Prohibit body for annotation class
#KT-1886 Fixed
2012-09-13 16:27:48 +04:00
Alexander Udalov 954003872d Do not generate erroneous classes in SIGNATURES mode
Add an assertion that this never happens in other modes.

(fixes EA-37034)
2012-09-13 16:20:25 +04:00
Alexander Udalov ccfa5f8c2c Do not lookup expressions in closures when building signatures
#KT-2764 Fixed
(EA-38857)
2012-09-12 21:16:47 +04:00
Nikolay Krasko 1121d9b316 EA-38789 Fix "Name is null for OBJECT_DECLARATION object" 2012-09-12 19:58:45 +04:00
Nikolay Krasko b6e2381861 EA-36473 Wrap method for JetLightClass with invalid fq name 2012-09-11 21:29:42 +04:00
Alexander Udalov bb92655ecd Prohibit creation of JetLightClass on built-ins
If we allow JetLightClass to be created on built-in types, a normal codegen
would be launched, with a mapping from Kotlin to Java types enabled, every time
IDE requests built-in classes. Codegen would then try to make something
meaningless, e.g. create a class for a primitive type (since our jet.Boolean is
mapped to primitive boolean). This would result in different exceptions when
navigating to built-in library from IDE.

Add a helpful error message to ClassFileFactory if we ever again produce
classes for primitive types.
2012-09-11 17:08:33 +04:00
Nikolay Krasko df76d2d3a8 In and Out keyword completion for generic parameters 2012-09-07 21:02:01 +04:00
Nikolay Krasko e043a6c699 Fix error keyword completion in modifier lists in parameters 2012-09-07 21:02:00 +04:00
Nikolay Krasko 8fd52a9095 Two tests for resolved reference 2012-09-07 21:01:59 +04:00
Nikolay Krasko 4376c7a87c Use separate test methods instead of generated suit 2012-09-07 21:01:57 +04:00
Andrey Breslav fc90c775e9 KT-2730 AssertionError at org.jetbrains.jet.codegen.AnnotationCodegen.genAnnotations(AnnotationCodegen.java:86)
#KT-2730 Fixed
2012-09-06 15:31:59 +04:00
Nikolay Krasko c587a1375f KT-112 Cannot rename a class on a constructor call site
#KT-112 Obsolete
2012-09-06 00:00:53 +04:00
Svetlana Isakova ed68ac2244 test fix 2012-09-05 18:55:18 +04:00
Svetlana Isakova b4e3c36c5e resolve constructor reference in standard library 2012-09-05 18:55:18 +04:00
Svetlana Isakova 0b4b515ad7 navigate to several elements if there are many
(not only in ambiguity case)
2012-09-05 18:55:17 +04:00
Svetlana Isakova 7d37df5f38 tests changes after collections mapping 2012-09-05 18:55:16 +04:00
Svetlana Isakova 31831f2433 added 'class has Kotlin analog' error
to existing diagnostic tests
2012-09-05 18:55:16 +04:00
Nikolay Krasko 0e3dd77098 KT-2170 "private" keyword completion does not work before "val"
#KT-2170 Fixed
2012-09-05 17:08:02 +04:00
Andrey Breslav a267f65fa1 Front-end test data fixed to have no complex patterns
#KT-2359 In Progress
2012-09-05 14:18:40 +04:00
Natalia.Ukhorskaya b113059c2c KT-2709 Optimizing import removes reference to class when in code val from its class object is used
#KT-2709 Fixed
2012-09-05 11:39:42 +04:00
Natalia.Ukhorskaya cc215d4212 Optimizing imports doesn't remove references to java static fields when they are referred via short name in code 2012-09-05 11:29:35 +04:00
Nikolay Krasko d4564a41e3 EA-38865 Fail for convention functions names 2012-09-04 22:56:12 +04:00
Nikolay Krasko d9cd4f0d74 KT-2725 No completion in properties initializers and accessors
#KT-2725 Fixed
2012-09-04 16:37:37 +04:00
Nikolay Krasko 138373c94c KT-2724 No completion in class initializers
#KT-2724 Fixed
2012-09-04 15:36:30 +04:00
Natalia.Ukhorskaya 7e1091a6af KT-1850 Fixed: Redundant imports are not removed when classes are used only by FQ name
OptimizeImportsMultiFileTest added
2012-09-03 17:59:52 +04:00
Alexander Udalov 5b96d045f9 Fix debugger testdata after bd5b8d3 2012-08-31 19:37:29 +04:00
Natalia.Ukhorskaya c5711cccda Rename test files 2012-08-31 15:13:46 +04:00
Natalia.Ukhorskaya 84e846649f Fixed KT-2488 Optimizing imports removes references to enum constants when they are referred via short name in code 2012-08-31 14:52:04 +04:00
Andrey Breslav 7caa1b8aa4 KT-2364 Drop traces of constructor-entries in enums
#KT-2364 Fixed
2012-08-29 22:07:42 +04:00
Pavel V. Talanov b228fd66e0 Enum entry has final modality when loaded from binaries. 2012-08-27 15:52:34 +04:00
Svetlana Isakova f8edaad420 make modality 'FINAL' for non-class members
not depend on actual modifier since it's not legal there
2012-08-22 20:42:35 +04:00
Natalia.Ukhorskaya 4b002d1d6d Fix test data according to latest changes in JavaDescriptorResolver. 2012-08-21 21:40:49 +04:00
Nikolay Krasko 9c91acac74 KT-2242 formatting problems: function literal passed outside the parentheses - option for spaces in single line function literal
#KT-2242 Fixed
2012-08-21 16:16:23 +04:00
Nikolay Krasko e7287ba8f4 KT-2242 formatting problems: function literal passed outside the parentheses - fix test data in affected tests
#KT-2242 Fixed
2012-08-21 16:16:22 +04:00
Nikolay Krasko cb0cf8e563 KT-1545 reformatting of kotlin code uses incorrect indentation for multi-line kdoc comments
#KT-1545 Open
2012-08-21 13:25:17 +04:00
Nikolay Krasko 2e92594462 KT-2242 formatting problems: function literal passed outside the parentheses
#KT-2242 Fixed
2012-08-21 12:54:53 +04:00
Nikolay Krasko b85300d90a KT-2572 Cursor position on Enter after 'try'
#KT-2575 Fixed
2012-08-20 20:13:58 +04:00
Alexander Udalov 69b403783b multifile debugger tests 2012-08-20 19:29:14 +04:00
Svetlana Isakova f817eba7aa removed check for 'hasNext' val in frontend 2012-08-20 16:05:16 +04:00
Alexander Udalov dc2d21e0c9 test data for position manager 2012-08-17 18:38:47 +04:00
Nikolay Krasko 2fd5e01da8 KT-1389 Ctrl-Alt-B on class declaration does not work - Multifile tests
#KT-1389 Fixed
2012-08-16 21:21:29 +04:00
Nikolay Krasko 60b20374da KT-1389 Ctrl-Alt-B on class declaration does not work - Include location part into test data
#KT-1389 In Progress
2012-08-16 21:21:28 +04:00
Nikolay Krasko 1b4603a64a KT-1389 Ctrl-Alt-B on class declaration does not work - one more test, remove class info from test info, fix order of test data
#KT-1389 In Progress
2012-08-16 21:21:27 +04:00
Nikolay Krasko 0b97b14642 KT-1389 Ctrl-Alt-B on class declaration does not work
#KT-1389 In Progress
2012-08-16 21:21:26 +04:00