separate compiler and plugin tests

This commit is contained in:
Dmitry Jemerov
2011-10-20 16:19:02 +02:00
parent a80398098b
commit ec6dec0d37
586 changed files with 69 additions and 42 deletions
@@ -0,0 +1,5 @@
private var x = 0;
fun increment(): Int {
return ++x;
}
@@ -0,0 +1,7 @@
var collector: String = ""
set(it) { $collector = $collector + it }
fun append(s: String): String {
collector = s;
return collector;
}
@@ -0,0 +1,7 @@
var collector: String = ""
set(it) { $collector += it }
fun append(s: String): String {
collector = s;
return collector;
}
@@ -0,0 +1,3 @@
class PrivateVal() {
private val prop = 0;
}
@@ -0,0 +1,6 @@
class PrivateVar() {
private var x = 0;
fun setValueOfX(aValue: Int) { x = aValue }
fun getValueOfX() = x
}
@@ -0,0 +1,6 @@
class Evaluator(val expr: StringBuilder) {
fun evaluateArg(): Int {
return expr.length()
}
}