Alex Tkachman
29054586d3
default imports added to script definitions
2012-08-01 23:05:56 +03:00
Alexander Udalov
a85f46816e
KT-937 When loading array types from Java project them so that they are covariant
...
#KT-937 Fixed
2012-08-01 21:27:57 +04:00
Svetlana Isakova
b5229b8b3d
tests for type inference tasks added
...
#KT-742 fixed
#KT-832 fixed
#KT-943 fixed
2012-08-01 17:03:53 +04:00
Svetlana Isakova
4e0a9f2af6
type inference errors improvement
...
if constraint system without expected type was successful,
expected type mismatch error should be generated (instead of conflicting substitutions error)
#KT-731 fixed
2012-08-01 17:03:52 +04:00
Pavel V. Talanov
d45145b3a7
Use first text range for diagnostics with multiple ranges.
...
Move TEXT_RANGE_COMPARATOR to DiagnosticUtils.
2012-08-01 16:26:13 +04:00
Pavel V. Talanov
714aa04924
KT-2524: Standalone compiler prints diagnostics in random order.
...
#KT-2524 Fixed
2012-08-01 16:26:10 +04:00
Alex Tkachman
e134969896
making script classes useful/accessable for the rest of the world
2012-08-01 09:58:01 +03:00
Alexander Udalov
dcd5cad427
KT-2280 Recursive function declared in function results in VerifyError
...
#KT-2280 Fixed
A closure's constructor should not take an instance of itself as an
argument, because it would require caller to pass yet uninitialized
value. Instead it should initialize a corresponding field with 'this'
2012-07-31 19:38:14 +04:00
Maxim Manuylov
1f3aa6699c
fix tests
2012-07-31 17:36:20 +04:00
Evgeny Gerashchenko
72c39dc903
Renamed doDoMain -> doMainNoExit.
2012-07-31 16:45:13 +04:00
Maxim Manuylov
a8cd11f0f9
more tests for compiler
2012-07-31 16:43:56 +04:00
Evgeny Gerashchenko
9a5fc78b85
Removed factory methods from JetCoreEnvironment since they only invoke constuctor.
2012-07-31 16:33:45 +04:00
Evgeny Gerashchenko
2727aa7da4
Gor rid of K2JVMCompileEnvironmentConfiguration and CompileEnvironmentConfiguration. Using JetCoreEnvironment instead of K2JVMCompileEnvironmentConfiguration.
2012-07-31 16:33:44 +04:00
Evgeny Gerashchenko
940c09fc8a
Passing message collector via CompilerConfiguration.
2012-07-31 16:33:44 +04:00
Evgeny Gerashchenko
8dfa3d8ce9
Moved everything but environment and messageCollector from K2JVMCompileEnvironmentConfiguration to CompilerConfiguration.
2012-07-31 16:33:44 +04:00
Alexander Udalov
7609d0de8c
testcase for EA-37609
2012-07-30 20:58:42 +04:00
Alexander Udalov
a286c475e4
test for KT-1939
...
#KT-1939 fixed
2012-07-30 19:20:04 +04:00
Alexander Udalov
cb9c18b7ad
KT-2498 Bridge method is not generated for method when generic parameters are substituted in superclass
...
#KT-2498 Fixed
generateBridgeIfNeeded() now works as follows: for a given method, find
which declared methods does this method override via breadth-first search.
For each such declared method, generate a bridge if and only if its
signature is different. Keep different methods' signatures in a set to
avoid duplicated bridge signatures.
2012-07-30 18:27:01 +04:00
Alex Tkachman
4685679eaf
Merge remote branch 'origin/master'
2012-07-30 13:25:19 +03:00
Alex Tkachman
a98cd7aa0f
script renamed
2012-07-30 13:24:59 +03:00
Alexander Udalov
b55ef01e54
KT-2382 Placing final modifier to overriden method in trait produces runtime exception
...
#KT-2382 Fixed
2012-07-30 13:31:11 +04:00
Alex Tkachman
c14a0b3c84
refactoring of script definition api
2012-07-30 09:26:30 +03:00
Alex Tkachman
7c2d394412
properr names for scripts
2012-07-29 23:58:45 +03:00
Alex Tkachman
f8391619a5
configurable script languages
2012-07-29 21:32:53 +03:00
Alex Tkachman
b8bfde3102
in-memory compilation of standalone script
2012-07-28 20:32:18 +03:00
Alex Tkachman
0b327d29bc
fix KT-2481: no bridge for supercall
2012-07-28 14:17:42 +03:00
Alex Tkachman
eaee4e9cc7
Merge pull request #112 from udalov/kt2541
...
KT-2541 VerifyError on substituting type after inheritance from trait
2012-07-27 22:29:02 -07:00
Andrey Breslav
c02e54678e
Descriptors with error types can override each other
2012-07-27 20:16:57 +04:00
Andrey Breslav
58ec90d7ee
Don't compare the whole JDK in LR diagnostic tests
2012-07-27 20:16:56 +04:00
Andrey Breslav
2b957fdfa0
Selective recursion
2012-07-27 20:16:56 +04:00
Andrey Breslav
d6523c95ad
NON_RECURSIVE definition fixed
2012-07-27 20:16:56 +04:00
Andrey Breslav
020aa66a73
Assertion message corrected
2012-07-27 20:16:56 +04:00
Alexander Udalov
fe1e6fc0d3
KT-2541 VerifyError on substituting type after inheritance from trait
...
#KT-2541 Fixed
2012-07-27 19:43:14 +04:00
Andrey Breslav
99bf7553e0
NamespaceComparator.Configuration introduced
2012-07-27 17:13:54 +04:00
Andrey Breslav
3e37f21403
Extracting shortnames of toplevel packages factored out as a utility method
2012-07-27 12:32:49 +04:00
Andrey Breslav
781c1f4eb0
Test implementation simplified
2012-07-27 12:30:47 +04:00
Evgeny Gerashchenko
fd560e62b7
Updated module dependencies according to asm-util -> asm-addons renaming.
2012-07-26 19:02:58 +04:00
Andrey Breslav
93e19fbd18
Stdlib loading test only compares relevant namespaces
2012-07-26 18:14:47 +04:00
Andrey Breslav
2923c1f32e
Simple LR Tests don't need to compare all the packages in the world
2012-07-26 17:41:46 +04:00
Pavel V. Talanov
fa1c471d92
Partial fix for KT-470: Remove duplicating errors on the same element.
...
Redeclarations for top-level properties still get two REDECLARATION diagnostics. (In overload resolver and declaration resolver)
Also added test for redeclaring extension properties.
Also remove useless null check.
2012-07-26 13:11:38 +04:00
Pavel V. Talanov
cd1ca92f74
KT-53: Allow generic parameter passing for properties.
...
Obsolete issue.
#KT-53 Fixed
2012-07-25 14:48:40 +04:00
Pavel V. Talanov
fd78340897
KT-310: Tell the user when something is a property and not a function.
...
#KT-310 Fixed
2012-07-25 14:00:03 +04:00
Pavel V. Talanov
1efd02effe
KT-789 Code generation fails: size property of collections.
...
Only test.
#KT-789 Fixed
2012-07-25 14:00:01 +04:00
Pavel V. Talanov
22af8f7296
KT-304: Resolve supertype reference to class anyway.
...
#KT-304 Fixed
2012-07-25 14:00:01 +04:00
Andrey Breslav
03f73e8f8c
Visitors in tests migrated to ASM 4.0
2012-07-25 12:07:20 +04:00
Andrey Breslav
5f3643804c
Import directives migrated from ASM 3.3 to 4.0 with renamed packages
2012-07-25 12:07:19 +04:00
Andrey Breslav
839c39c70d
Migrate build and project configuration to IntelliJ IDEA 12 (Leda) EAP
...
Major changes: ASM is switched from vanilla 3.3 to a 4.0 with renamed packages,
because this is done inside IDEA and we depend on that transitively.
Thus the jarjar renaming in build.xml, old library binaries deleted.
Also we now depend on exact IDEA build (EAP), not "last successful".
2012-07-25 12:07:19 +04:00
Andrey Breslav
29bc36b69c
Merge pull request #109 from udalov/kt2438
...
KT-2438 Prohibit inner classes with the same name
2012-07-24 07:51:35 -07:00
Alexander Udalov
4712dd759c
KT-2438 Prohibit inner classes with the same name
...
Rewrite checkClassObjectInnerClassNames() to also
check for name clashes between inner classes of a
single class
#KT-2438 Fixed
2012-07-24 16:25:17 +04:00
Pavel V. Talanov
b216bbb844
KT-619 Type inference fails
...
#KT-619 Fixed
2012-07-24 15:53:39 +04:00