Commit Graph

1567 Commits

Author SHA1 Message Date
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
Svetlana Isakova db91928984 test fixes after refactorings
expected return type for function literal cannot depend on expected type of outer function
2013-02-08 15:10:43 +04:00
Svetlana Isakova d447c90b13 added tests for function literals faster resolve 2013-02-08 15:10:42 +04:00
Svetlana Isakova 3eee19578a complete inference for inner calls after resolve&inference of outer call finishes
deferredComputationsForArguments stored in ResolvedCallImpl,
'completeValueArgumentsInference' completes inference for inner calls recursively
2013-02-08 15:10:42 +04:00
Svetlana Isakova ff01fad3cd substitute upper bounds after creating all substitutions for type parameters
(otherwise it doesn't work for forward references)
2013-02-08 15:10:40 +04:00
Svetlana Isakova 8f59172f27 use declared upper bounds in type inference (not just check them)
- simple cases supported
#KT-2856 fixed
2013-02-08 15:10:39 +04:00
Svetlana Isakova da4f1aec1d KT-422 Tune literal typing rules so that varargs overloaded by primitive types work
#KT-422 fixed
2013-02-08 15:10:39 +04:00
Alexander Udalov dfc45cc21e Fix Android codegen tests 2013-02-07 22:42:17 +04:00
Andrey Breslav 0234d0afc8 Test data fixed 2013-02-07 18:22:09 +04:00
max-kammerer 843991083d For namespaces with multiple files keep 'Compiled from' information empty 2013-02-07 18:00:53 +04:00
Andrey Breslav 0b4b87fc3a KT-3307 Compiler exception trying to call Java method
#KT-3307 Fixed
2013-02-07 16:44:13 +04:00
Natalia.Ukhorskaya 1749e3298c Method from java overridden in kotlin should have kotlin visibility 2013-02-06 21:54:22 +04:00
Natalia.Ukhorskaya 11273f3035 Implement package protected visibility 2013-02-06 21:54:19 +04:00
Natalia.Ukhorskaya 88e3b9e190 Add codegen tests for package visibility 2013-02-06 21:54:18 +04:00
Natalia.Ukhorskaya 2862d13cb1 Change tooltip message for protected static methods from java 2013-02-06 21:54:17 +04:00
Alexander Udalov 64bc79aaac Fix safe calls codegen for nullable generic 2013-02-06 17:54:30 +04:00
Alexander Udalov 433660b2ce Fix codegen of !! for nullable generics 2013-02-06 17:54:29 +04:00
Alexander Udalov 75f09b7527 Fix codegen of as-casts for nullable generics 2013-02-06 17:54:28 +04:00
Alexander Udalov 70f67c7993 Fix elvis expression in case of nullable generic 2013-02-06 17:54:27 +04:00
Alexander Udalov 8697adb28a Fix generic data class hashCode for null
Null may come from everywhere, so we always check for it (when the property's
type is not primitive)
2013-02-06 17:54:26 +04:00
max-kammerer 41b379497d revert of 59ede8b 2013-02-06 14:33:19 +04:00
max-kammerer 59ede8b979 Test for KT-2763 2013-02-06 14:15:24 +04:00
Leonid Shalupov bf33dd4091 Merge remote-tracking branch 'remotes/origin/remote-run/shalupov' 2013-02-06 14:00:02 +04:00
Leonid Shalupov a6468bdff1 fix tests 2013-02-06 13:16:38 +04:00
Alexander Udalov 1f4dd8cd33 Add CodegenUtil.isNullableType(), fix assertions
JetType.isNullable() is not accurate when the type denotes a type parameter:
a parameter can be not null (isNullable=false), but its upper bound can be
nullable (<T: Any?>), so null may appear in the value of such type. Therefore
it's preferred to use a special check (isNullableType()) in codegen from now on

Do not generate assertion for parameters of not-null types which have a
nullable upper bound + the same with Java method calls

Also fix Intrinsics class internal name in tests

 #KT-3313 Fixed
2013-02-05 21:52:29 +04:00
Alexander Udalov 8eb6047972 Fix assertions generation for substituted members 2013-02-05 16:26:56 +04:00
Evgeny Gerashchenko 4be1e7d8d8 Checking redundant/conflicting projection kind in alt signatures. 2013-02-04 16:09:14 +04:00
Alexander Udalov 4ca522bf0e Fix codegen of do-while condition
The condition of a do-while loop can use variables declared in the loop
(variables can only be declared inside a block). Previously this behaviour
caused crash because after the block was generated, all variables declared
inside that block were gone from myFrameMap

 #KT-3280 Fixed
2013-02-04 15:30:38 +04:00
Alexander Udalov 7716feee71 Fix NPE in JetPsiUtil (EA-43298) 2013-02-04 15:27:30 +04:00
Nikolay Krasko 54e5fa5256 Imports resolution tests 2013-02-04 14:23:26 +04:00
Nikolay Krasko d4e3a4f74d Tests added for checking two-phase (classes and functions) import resolution 2013-02-04 14:23:22 +04:00
Nikolay Krasko ee227f01b9 Add test for checking ambiguity for root package and the same package 2013-02-04 14:23:21 +04:00
Nikolay Krasko f2e78d9064 Create scope with lazy import resolve 2013-02-04 14:23:21 +04:00
Andrey Breslav 79e27f2d90 Write vararg flag on value parameters 2013-01-31 22:05:56 +04:00
Evgeny Gerashchenko e1b7126ae3 Replaced variance with projection kind. 2013-01-31 21:33:43 +04:00
Evgeny Gerashchenko d0b18287c8 Removed redundant 'out' in MutableMap.putAll 2013-01-31 21:33:43 +04:00
Evgeny Gerashchenko 74771cb2db KT-3302 Method that implements two differing interfaces are reported as "Incompatible types in superclasses"
#KT-3302 fixed
2013-01-31 21:33:42 +04:00
Alexander Udalov 2e64aac788 Add regression test for KT-3132
#KT-3132 Obsolete
2013-01-31 20:59:16 +04:00
Alexander Udalov 1d8e7626a1 Regenerate ranges testData 2013-01-31 20:58:22 +04:00
Alexander Udalov cfce055b37 Introduce fake light class for file of package
Fixes problems related to not working breakpoints (see comment at the top of
the class)

 #KT-3291 Fixed
2013-01-31 20:43:47 +04:00
Andrey Breslav bbde38a6dc KT-1360 Vararg bug in front-end 2013-01-31 18:54:37 +04:00
Andrey Breslav 2d2c44ca9d KT-2106 Mixed named and positional arguments should be allowed
#KT-2106 Fixed
2013-01-31 15:43:14 +04:00
Svetlana Isakova ba9c455ea1 KT-3301 Inference with several supertypes fails
#KT-3301 fixed
2013-01-30 20:29:30 +04:00
Evgeny Gerashchenko 07a25a7757 Removed newline after copyrights in generated injectors. 2013-01-30 19:24:16 +04:00
Evgeny Gerashchenko 57e985b7f1 Generated codegen tests for ranges. 2013-01-30 19:24:15 +04:00
Evgeny Gerashchenko 21c37951d6 Removed old range test which were spread all over the place. 2013-01-30 19:23:51 +04:00
Andrey Breslav d31e53fa59 EA-41207 - IAE: NameUtils.requireIdentifier
Test data files renamed
2013-01-30 12:28:45 +04:00
Evgeny Gerashchenko 58f37f38f4 Renamed NumberSequence to Progression. 2013-01-29 22:55:10 +04:00
Evgeny Gerashchenko 0660dfb84c Made N type parameter not Number.
Otherwise it fails with NoSuchMethodError in runtime.
2013-01-29 22:55:08 +04:00