Stepan Koltsov
1f5666e0e8
more tests in ScriptGenTest
2012-05-30 19:47:42 +04:00
Nikolay Krasko
b767e1a8a6
Failure after typing empty import
2012-05-30 17:09:46 +04:00
Stepan Koltsov
25f71bcd3a
skip shebang in the first line
...
Something like this works now:
===
% PATH="./bin:$PATH" ./sum.ktscript 31 21
31 + 21 = 52
% cat sum.ktscript
#!/usr/bin/env kotlin -script
val a = Integer.parseInt(args[0])
val b = Integer.parseInt(args[1])
println("$a + $b = ${a + b}")
===
2012-05-28 22:59:03 +04:00
Stepan Koltsov
30e44fdc5f
script parameters
...
still a lot of things to do
2012-05-28 20:31:29 +04:00
Svetlana Isakova
84d60b8baa
check deeply inner local declarations added
2012-05-28 15:21:40 +04:00
Svetlana Isakova
d1d0722b5a
tests for dead code in pseudocode
2012-05-28 12:09:45 +04:00
Svetlana Isakova
7a02cfcd25
order of declaration changed in tests
2012-05-28 12:09:45 +04:00
Svetlana Isakova
b6b1ce52e1
tests changed:
...
added check for unused/uninitialized variables inside local and anonymous functions
2012-05-28 12:06:13 +04:00
Svetlana Isakova
edb529f68f
added edge 'error' -> 'sink'
...
added 'getLocalDeclarations' method to pseudocode
2012-05-28 12:06:12 +04:00
Svetlana Isakova
f03ce0795e
KT-2096 Abstract property with no type specified causes compiler to crash
...
#KT-2096 fixed
2012-05-25 14:04:32 +04:00
Svetlana Isakova
0fd882741b
function invocation with only type parameters prohibited
2012-05-23 22:04:22 +04:00
Svetlana Isakova
b22a7dbf99
KT-2014 Better diagnostic when using property syntax to call a method
...
#KT-2014 fixed
2012-05-23 21:53:17 +04:00
Svetlana Isakova
f58d0193eb
test for KT-1878 Support 'invoke' functions short way invocation
2012-05-23 12:50:19 +04:00
Stepan Koltsov
33a59ff5fe
Name class
...
In the most places in frontend identifier is stored in Name class, was in String.
Name has two advantages over String:
* validation: you cannot accidentally create identifier with dot, for example
* readability: if you see String, you don't now whether it is
identifier, fq name, jvm class name or something else
Name's disadvantage is (small) performance overhead. We have no value types in JVM.
2012-05-23 02:52:32 +04:00
Stepan Koltsov
c15ff2dee0
make parser test debugging friendly
2012-05-23 02:52:32 +04:00
Stepan Koltsov
13a9108f05
sort members in Read*BinaryClassTest
...
test should not fail if hash code or hash set is implemented diffently
2012-05-23 02:52:31 +04:00
Stepan Koltsov
f4051f45ab
generate bytecode for script
...
It is just prototype
* does not make top level symbols visible as class members yet
* does not take parameters
* Script class name is hardcoded now
2012-05-23 02:52:29 +04:00
Stepan Koltsov
d6bf8876a3
analyze kotlin scripts
2012-05-23 02:52:29 +04:00
Stepan Koltsov
5fc73a4cd4
parse kotlin scripts
...
http://confluence.jetbrains.net/display/~stepan.koltsov/REPL
2012-05-23 02:52:29 +04:00
Alex Tkachman
f15cb22809
patch from Natasha to fix local var table 0 for function literals
2012-05-22 19:10:59 +03:00
Svetlana Isakova
b63d3905f9
KT-1256 Error highlighting in IDE should be less annoying
...
#KT-1256 fixed
2012-05-22 18:23:51 +04:00
Svetlana Isakova
c2385407e0
KT-1942 Package local members from Java are visible in subclasses
...
#KT-1942 fixed
2012-05-21 18:32:19 +04:00
Svetlana Isakova
2d601cf4a2
Frontend part of KT-910 Type of try/catch/finally
2012-05-18 15:20:37 +04:00
Svetlana Isakova
b49fa2ab82
KT-1977 Wrong 'unused expression' in catch
...
#KT-1977 fixed
2012-05-18 15:19:38 +04:00
Stepan Koltsov
448260fc3e
KT-1996 Missing ABSTRACT_MEMBER_NOT_IMPLEMENTED when two supertypes contains same abstract member
...
===
trait Foo {
fun foo(): Unit
}
trait Bar {
fun foo(): Unit
}
class Baz : Foo, Bar // no error here
===
#KT-1996 fixed
2012-05-15 22:45:11 +04:00
Andrey Breslav
cf3091adb5
Data flow info always taken into account in safeGetType()
...
The dangerous method removed
2012-05-13 12:58:50 +04:00
Stepan Koltsov
8c8ed3a1ee
KT-1388 Parse static final fields from java binary classes as non-null
...
#KT-1388 Fixed
2012-05-13 00:53:37 +04:00
Stepan Koltsov
ae58c1c888
better comparison of vararg signatures in Read*BinaryClassTest
2012-05-12 22:28:39 +04:00
Stepan Koltsov
f061fce9a8
properly read vararg signature from java code
...
KT-1694 Java vararg override, Why is it intuitive interface?
#KT-1694 Fixed
2012-05-12 22:21:09 +04:00
Evgeny Gerashchenko
b0c0173924
Removed test for KT-1666, since navigation to standard libraries is working normally now (instead of navigation to the same source).
2012-05-12 21:56:45 +04:00
Evgeny Gerashchenko
9265ce4ec9
Renumbered type and value parameters of function types.
...
Their numbers now start from 1. This is made for consistency with auto-generated sources for these types. Parameters of runtime types (written in Java) are numbered starting with 0, too.
2012-05-12 21:56:42 +04:00
Nikolay Krasko
dcc6392eb4
Intermediate major refactorings for lazy resolve - test fix (order changed)
2012-05-11 19:27:56 +04:00
Stepan Koltsov
3af2b1b80a
improve rendering of upper bounds
2012-05-11 18:24:58 +04:00
Andrey Breslav
420a7c9ad4
KT-1961 Incorrect override error in functions with type parameter with two upper bounds
...
#KT-1961 Fixed
2012-05-11 18:00:09 +04:00
Svetlana Isakova
b1e5a0768c
KT-1955 Half a file is red on incomplete code
...
#KT-1955 fixed
2012-05-11 15:03:23 +04:00
Svetlana Isakova
696df0eb9b
more tests for KT-1897
...
#KT-1897 fixed
2012-05-11 14:24:38 +04:00
Natalia.Ukhorskaya
162cc7307d
KT-1935 Fixed: ACC_SUPER flag must be set for classes
2012-05-11 12:52:26 +04:00
Stepan Koltsov
9908791094
KT-1829 NoClassDefFoundError when using java inner classes
...
#KT-1829 Fixed
2012-05-11 01:08:30 +04:00
Svetlana Isakova
8d26629aff
Resolution diagnostic improvement
...
#KT-1940 fixed
2012-05-10 19:01:58 +04:00
Stepan Koltsov
e303c80868
add missing test for KT-1880
...
(hide static members from superclasses)
2012-05-10 18:56:18 +04:00
Stepan Koltsov
a00e765bd5
Read*BinaryClassTest: type parameter with two upper bounds
2012-05-10 18:56:18 +04:00
Alex Tkachman
6d2deaa70c
KT-1600: call to non-overriden generic method
2012-05-10 16:45:34 +03:00
Svetlana Isakova
765d851b1a
Tests for fixed issues
...
#KT-1736 fixed
#KT-1244 fixed
#KT-1738 fixed
2012-05-04 20:47:26 +04:00
Svetlana Isakova
22e9e7de10
more small tests
2012-05-04 20:47:26 +04:00
Andrey Breslav
2c8b3c879c
TypeSubstitutor rewritten to be more readable
2012-05-04 20:07:40 +04:00
Andrey Breslav
6ba44a133f
Tests for recursive upper bounds
2012-05-04 20:07:39 +04:00
Svetlana Isakova
53397d7130
tests for KT-606 dependents & duplicates
...
#KT-1489 fixed
#KT-1728 fixed
2012-05-04 14:54:12 +04:00
Stepan Koltsov
fcee8a4133
test vararg string loading
2012-05-03 18:23:37 +04:00
Svetlana Isakova
d4b816ef56
KT-1743 Analyze immutable local variables and parameters which are captured in closure
...
#KT-1743 fixed
2012-05-03 17:56:45 +04:00
Stepan Koltsov
08abd992c9
complicate kt471 test back
2012-05-03 17:39:08 +04:00