Svyatoslav Scherbina
1f7738e052
backend: fix minor bug in evaluateWhen
...
Also add the corresponding test 'when9'.
2017-01-20 20:02:50 +07:00
Svyatoslav Scherbina
0958d32605
backend: improve typealias support:
...
* handle TypeAliasConstructorDescriptor in codegen
* ignore ignore typealias declaration in codegen
Also add test 'typealias1'.
2017-01-20 20:02:50 +07:00
Svyatoslav Scherbina
65444ec690
backend: improve type operators support:
...
* add initial support for casts with generics;
* optimize out the casts to subtypes
Also add tests unchecked_cast{1,2}, the latter is disabled.
2017-01-20 20:02:50 +07:00
Svyatoslav Scherbina
d5988297b1
backend/tests: add objectExpression{1,2,3}
2017-01-20 17:53:38 +07:00
KonstantinAnisimov
1a83014eba
Merge branch 'master' into inline
2017-01-20 10:26:34 +07:00
Konstantin Anisimov
551218c133
TESTS: new tests added
2017-01-18 17:21:04 +07:00
Svyatoslav Scherbina
8474168960
backend/tests: add objectInitialization1
2017-01-18 12:33:43 +07:00
Nikolay Igotti
90577d440a
Improve object arrays support. ( #182 )
...
Also fix the way how symbol names are being generated. Before arrays2.kt was not linking.
2017-01-16 12:22:27 +03:00
Svyatoslav Scherbina
3b4c25988e
backend/tests: add defaults{4,5,6}
2017-01-16 10:57:40 +07:00
Vasily Levchenko
a8caf7c7d8
TEST: test for default parameters
...
(cherry picked from commit 7999d68d812aedd5863f04b7fd2171e284b8f332)
2017-01-13 13:42:02 +03:00
Svyatoslav Scherbina
8b83cb2adf
backend: enable some tests
2017-01-11 19:32:25 +07:00
Konstantin Anisimov
9a363ceaf6
TESTS: new tests added
2017-01-09 17:16:54 +07:00
Konstantin Anisimov
c46ba1aa3f
TESTS: passing changes in the test
2017-01-09 17:16:24 +07:00
Konstantin Anisimov
252af6ce15
TESTS: test for inlining integrated in the testsuite
2017-01-09 17:16:24 +07:00
Konstantin Anisimov
df87c8e794
TEST: test for inlining added
2017-01-09 17:01:34 +07:00
Nikolay Igotti
61d6967f3c
Support missing when branch exception throwing. ( #174 )
2016-12-31 12:01:56 +03:00
Nikolay Igotti
667d3b9356
Switch when to phi. ( #172 )
2016-12-29 16:33:23 +03:00
Svyatoslav Scherbina
276e3bcd44
backend/tests:
...
* enable 'expression_as_statement'
* add unit{1..4}
2016-12-29 12:18:15 +07:00
Svyatoslav Scherbina
c0914825d9
backend/tests: add disabled test 'fields2'
...
Checks properties with custom accessors and backing fields.
2016-12-28 14:00:45 +07:00
Vasily Levchenko
3fe59cc46c
TEST: convertion unit tests into run tests
2016-12-27 13:56:03 +03:00
Svyatoslav Scherbina
62737efd54
backend: add tests:
...
* test for uninitialized vals
* test initializers3: global `var` of reference type
* expression_as_statement (disabled): using type operator as statement
Also enable test break1.
2016-12-23 11:40:31 +07:00
SvyatoslavScherbina
b6561b13a4
Implement lowering of some builtin operators. ( #154 )
...
* EQEQ
* THROW_NPE
Add test for (un)boxing `==` operands.
2016-12-22 13:02:20 +07:00
Svyatoslav Scherbina
f2b5b98dba
backend: enable and add tests for autoboxing
2016-12-20 15:33:38 +07:00
Nikolay Igotti
3b7321ef94
Boxing.
2016-12-20 15:33:38 +07:00
Svyatoslav Scherbina
319a473565
backend: add test for lambda with receiver
2016-12-13 16:09:55 +07:00
Svyatoslav Scherbina
ac4aca1c3a
backend: add more tests for lambda
2016-12-13 16:09:55 +07:00
Svyatoslav Scherbina
4dec392880
backend: add tests for lambda functions
2016-12-13 16:09:55 +07:00
Konstantin Anisimov
282f4fee07
TEST: yet another string concatenation test
2016-12-08 13:37:22 +03:00
Konstantin Anisimov
d8fe22cfb8
TEST: spread element test
2016-12-08 11:59:46 +03:00
Konstantin Anisimov
3eec3da511
TEST: tests for instanceof are modified to take in account null and nullable
2016-12-06 16:41:27 +03:00
Svyatoslav Scherbina
2531c34b64
backend: add two more tests for finally
2016-12-05 14:27:14 +07:00
Svyatoslav Scherbina
96b30f574f
backend: add failing test for break
2016-12-05 12:55:23 +07:00
Konstantin Anisimov
9afdfc316b
TEST: test includes labeled continue-break
2016-12-02 16:28:19 +03:00
Konstantin Anisimov
03e94c6877
TEST: tests for "break" and "continue" added
2016-12-02 16:28:19 +03:00
Svyatoslav Scherbina
e65b22569c
backend/tests: add disabled test 'array_to_any'
2016-12-02 16:47:40 +07:00
KonstantinAnisimov
90b6a12a5c
Canonical name ( #99 )
...
* TEST: enabled testRetainAll
* Method resolution spared of annotations and generics
* TEST: test for canonical names "interface+generic" added
* Methods' canonical names support:
- Recursive iteration of method argument types
- Arguments in question are delivered from topmost overriden ancestor of this method
2016-11-30 16:19:28 +03:00
SvyatoslavScherbina
075562f46b
Merge pull request #93 from JetBrains/try-catch-finally
...
Implement throw and try-catch-finally in backend
add corresponding tests
2016-11-29 15:01:23 +07:00
Konstantin Anisimov
837ae60eaf
TEST: tests for safe cast added
2016-11-28 21:48:01 +03:00
Svyatoslav Scherbina
e2dbeae85e
backend: add tests for try-catch-finally and throwing exceptions
...
also add some tests for bugs with unreachable code handling and variables
2016-11-28 20:24:27 +07:00
Konstantin Anisimov
4717e99ac2
TEST: companion and init0 tests
...
(cherry picked from commit f8e80249e9f986ae58a52a57173d2cb0b68a653b)
2016-11-25 23:37:49 +03:00
Konstantin Anisimov
1b1360c77e
TEST: extension function generation
...
(cherry picked from commit 27b8c962b2b12883150166c83c19b950c9091334)
2016-11-25 23:37:49 +03:00
Vasily Levchenko
48ee81548e
TEST: primary/secondary constructor fields initialization
2016-11-24 15:52:34 +03:00
Vasily Levchenko
81742556a6
TEST: constructor body test
2016-11-22 21:13:25 +03:00
Konstantin Anisimov
df358e8bd4
TEST: Tests for "null" constant added
2016-11-21 21:08:36 +03:00
vvlevchenko
5161155934
Constructor (w/o body) ( #74 )
2016-11-19 19:45:21 +03:00
Alexander Gorshenev
1d265bc50c
Here goes stdlib separation.
...
$ gradlew backend.native:stdlib
builds you stdlib.kt.bc now.
The test runs are taught to supply
-library stdlib.kt.bc to kotlin compiler for proper imports resolution,
and then later stdlib.kt.bc is provided to clang for the final link step.
2016-11-18 19:11:38 +04:00
Konstantin Anisimov
c1bb762417
TESTS: "for" and INSTANCEOF, NOT_INSTANCEOF, isInstanceOf on interface are added
2016-11-18 16:22:27 +03:00
Konstantin Anisimov
9c28555e55
Test for cast added
2016-11-18 15:47:28 +03:00
Konstantin Anisimov
103509d75d
Tests fixed
2016-11-18 14:30:32 +03:00
Vasily Levchenko
514d1a16ec
test: minus_eq fix
2016-11-18 13:54:34 +03:00