Nikolay Krasko
9dedc6d2a9
KT-1998 Strange "Overload resolution ambiguity"
...
#KT-1998 Fixed
2013-02-11 16:09:24 +04:00
Nikolay Krasko
54ae3afcde
KT-880 Overload resolution ambiguity
...
#KT-880 Fixed
2013-02-11 16:09:23 +04:00
Mikhael Bogdanov
c61c8d7fa0
Compilation Exception - remove duplicated this on stack
...
#KT-3114 Fixed
2013-02-11 15:19:49 +04:00
Alexander Udalov
620143ae5b
Add test on bytecode text
...
Test data should be a Kotlin source file with zero or more comments e.g. of
the form: '// 1 INVOKEVIRTUAL'. The test then checks that the generated
bytecode for this file contains exactly one occurrence of the string
'INVOKEVIRTUAL'
2013-02-11 02:01:43 +04:00
Alexander Udalov
b485c7ae26
Switch class loading logic in blackBoxWithJava tests
...
BoxWithJava tests now by default are loaded with the classloader which has
test's classpath in itself, as in the former ClassPathInTheSameClassLoaderTest
2013-02-11 02:01:42 +04:00
Alexander Udalov
a61b3ec461
Move multi-file codegen testData to boxMultiFile/
...
There'll be an auto-generated test over this directory
2013-02-11 02:01:42 +04:00
Alexander Udalov
544aad390d
Delete StdlibTest and StdlibTestForever
...
Move remaining tests to AnnotationGenTest (where they did belong to in the
first place)
2013-02-11 02:01:42 +04:00
Alexander Udalov
90d255e7da
Simplify tests on not-null assertions
...
No need to call blackBoxFile() on a useless test data file. Also creating
environment logic is simplified
2013-02-11 02:01:41 +04:00
Alexander Udalov
9df3c22097
Kill blackBoxFile()
...
If your test is supposed to use blackBoxFile(), maybe it should be placed into
box/boxWithStdlib directory
2013-02-11 02:01:41 +04:00
Alexander Udalov
31231fe18b
Move JdkAnnotationsTest to boxWithStdlib
2013-02-11 02:01:41 +04:00
Alexander Udalov
f994c9924f
Move FullJdk tests to boxWithStdlib
2013-02-11 02:01:41 +04:00
Alexander Udalov
714708eac7
Delete generated test cases, move testData to boxWithStdlib
2013-02-11 02:01:40 +04:00
Alexander Udalov
b311255d96
Extract junit testcase, delete unneeded code
2013-02-11 02:01:40 +04:00
Alexander Udalov
8a605b3884
Codegen tests: move stdlib tests to boxWithStdlib
2013-02-11 02:01:40 +04:00
Alexander Udalov
83b93071d3
Fix over-optimized comparison with null
2013-02-11 02:01:39 +04:00
Andrey Breslav
1670831269
Test fixed after ABI version change
2013-02-10 16:06:30 +04:00
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