Merge remote-tracking branch 'origin/master'

This commit is contained in:
Andrey Breslav
2011-12-21 11:37:40 +02:00
22 changed files with 295 additions and 89 deletions
@@ -0,0 +1,7 @@
namespace container_test
class Container<T>(var t : T) {
fun getT() : T = t
}
fun box() = Container<String>("OK").getT()
@@ -0,0 +1,5 @@
namespace test
class ExtFunInClass {
fun Int.shuffle() = 1
}
@@ -0,0 +1,3 @@
namespace test
fun funDefaultArg(p: Int, q: Int = 17, r: Int = 18) = 19
@@ -0,0 +1,3 @@
namespace test
fun varargCharSequence(a: Int, vararg b: java.lang.CharSequence) = 1
@@ -0,0 +1,3 @@
namespace test
fun varargInt(a: Int, vararg b: Int) = 1
@@ -0,0 +1,5 @@
namespace test
abstract class ModifierAbstract {
abstract fun abs(): Int
}
@@ -0,0 +1,5 @@
namespace test
open class ModifierOpen {
open fun abs() = 1
}