James Strachan
84327d06c1
added a demonstration of how Kotlin currently handles nullable collections on for loops - by throwing NPEs
2012-02-28 09:08:39 +00:00
Evgeny Gerashchenko
4c70d341b1
Added stdlib function withIndices() converting sequence (Iterable) to sequence of index-value pairs.
...
#KT-1195 fixed
2012-02-27 17:43:20 +04:00
James Strachan
dd36efd24d
support jquery style element / css style / id lookups of elements on a document/element - along with test cases
2012-02-27 08:50:03 +00:00
James Strachan
7f97f9710e
added attribute lookup helper method
2012-02-24 17:54:03 +00:00
James Strachan
5841438134
added a nicer subscript navigation of DOM kinda like jquery but without the $ :)
2012-02-24 17:45:43 +00:00
Alex Tkachman
85a1be4c78
one more test for serialization
2012-02-23 20:32:26 +02:00
Alex Tkachman
f6a37b9bd8
serialization of functions and tuples
2012-02-23 20:13:02 +02:00
Alex Tkachman
53bba59a4f
dbl -> toDouble
2012-02-22 13:14:41 +02:00
Stepan Koltsov
62ddef4734
fix tests after javabean properties parsing
2012-02-22 00:38:14 +04:00
Alex Tkachman
8b622f97f4
getting rid of TypeInfo
2012-02-21 14:54:00 +02:00
James Strachan
a68b00dfd4
renamed the rather long getOrElseUpdate to a simpler getOrPut which is a bit simpler and more accurate; as a new entry is put into the Map if its null
2012-02-21 11:29:50 +00:00
Andrey Breslav
bff62484b1
KT-1306123.lng or 123.sht is not good name
2012-02-20 21:42:13 +04:00
James Strachan
094d5d2e70
added a few classes for doing property change listening (using pure kotlin code so its easier to work with JS and Java)
2012-02-20 15:38:34 +00:00
James Strachan
b8571ece11
added a testlib ant goal to run the unit tests on the testlib
2012-02-20 14:53:34 +00:00
Svetlana Isakova
046c13a264
KT-1041 Add check that thrown/catched expression is of Throwable type
2012-02-20 14:03:39 +04:00
James Strachan
3d3b41da4f
improved the DOM API a little with a few more helper methods and syntax sugar
2012-02-20 10:03:38 +00:00
James Strachan
70bb9aec93
added ant goal to compile the testlib test cases
2012-02-20 10:01:57 +00:00
James Strachan
33af436b38
added little fail helper method
2012-02-20 10:01:30 +00:00
Stepan Koltsov
9248cf9659
Important JavaDescriptorResolver refactoring
...
This patch implement own member filling with supertype scope. Before this patch JDR relied on
Idea hierarchy resolver.
This patch does two things:
* copies FunctionDescriptors from supertype scopes
* rewrites containingDeclaration similary to how it is done in previous patch
Patch is incomplete, in particular properties are not yet initialized properly, code needs cleanup,
however the most important part of refactoring is done, and tests pass.
2012-02-15 00:02:03 +04:00
Alex Tkachman
ace34b01bc
KT-1202 object construction fix
2012-02-13 08:34:10 +02:00
Alex Tkachman
84ed18c7e2
KT-1149 static type info field for unarameterized traits
2012-02-12 09:04:18 +02:00
Alex Tkachman
be5e11f2a5
KT-1172 test for obsolete issue
2012-02-12 08:28:49 +02:00
Alex Tkachman
8e6e8e938c
def args in constructors
2012-02-09 20:36:09 +02:00
James Strachan
d604272744
zapped the redundant getOrElse method as the ?: does indeed work with lazy expressions (no function definition required) - thanks for spotting this Andrey! :)
2012-02-09 06:25:52 +00:00
James Strachan
659fceecbe
removed unnecessary getOrElse(value) method as we can use ?: (which is neater!) though shame it doesn't work for lazy values, passing a function body which is invoked if the value is not null
2012-02-08 11:45:59 +00:00
James Strachan
04220935e0
enabled the test for T?.getOrElse and fixed up minor glitch in assertEquals
2012-02-08 07:57:18 +00:00
James Strachan
ef269a9f81
added a simple builder API to the std.dom API
2012-02-08 07:57:18 +00:00
James Strachan
a3cd65f10e
added a little spike of a little std.dom API to make the W3C DOM API a little kooler
2012-02-08 07:57:18 +00:00
James Strachan
5057bf732e
added a helper method for easily converting from a nullable type to a non nullable type with a non-lazy value, or lazy factory function
2012-02-08 07:57:18 +00:00
Alex Tkachman
adfce7e22d
KT-274 Enumeration.iterator()
2012-02-07 16:41:11 +02:00
Maxim Shafirov
9e7581c856
Give up on cleaning loader properly
2012-02-06 16:19:41 +04:00
Maxim Shafirov
bb3653b612
Make sure it's 3.8
2012-02-06 15:13:27 +04:00
Maxim Shafirov
f80ad4c35a
Yet another attempt to fix tests
2012-02-06 15:01:54 +04:00
Alex Tkachman
948ccc5205
javaClass<T>() function
2012-02-03 09:46:40 +02:00
svtk
4ce9a89d85
added extensions for BigInteger and BigDecimal
2012-01-30 14:55:31 +04:00
James Strachan
40775133fa
updated link to more accurate bug report
2012-01-25 11:56:15 +00:00
James Strachan
a6c6266603
added a test case for KT-1131
2012-01-25 10:44:21 +00:00
Alex Tkachman
3c13a2cd98
KT-968 String should provide an iterator() method
2012-01-25 09:36:55 +02:00
Stepan Koltsov
ff74f8217b
another "temporary" hack
...
I heard of some package merging problems, testlib declares std.test package,
and stdlib.jar has std package
2012-01-18 12:08:36 +04:00
Andrey Breslav
c78cb3cc19
Rename namespace->package in the token decala
2012-01-12 19:50:14 +04:00
svtk
2feaaa4f71
KT-897 Don't allow assignment to a property before it is defined
2012-01-10 15:04:57 +04:00
Alex Tkachman
5bb56a8abd
testing stdlib as part of the build
2012-01-08 16:47:26 +02:00
Alex Tkachman
897f3dc799
KT-923 Collection.indices property
2012-01-08 13:24:14 +02:00
James Strachan
852e21fe7e
added Iterable<T>.reverse() along with foldRight(init, op)
2012-01-07 07:49:54 +00:00
James Strachan
4627738ca4
added support for fold() along with a handy expect() test method (like scalatest)
2012-01-06 09:35:44 +00:00
James Strachan
16b617044c
disabled test for KT-924 for now as its a new feature, not a bug
2012-01-06 09:10:07 +00:00
James Strachan
89933439f4
added an attempt to use the standard APIs on kotlin.Iterable
2012-01-05 12:15:27 +00:00
James Strachan
1889672363
use java.util.HashMap directly
2012-01-04 16:49:19 +00:00
James Strachan
e73e81c526
added support for map[key] = value on java.util.Map
2012-01-04 16:14:49 +00:00
James Strachan
8c40aa58af
added working test casres for groovy style markup builders
2012-01-04 12:59:37 +00:00