Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user