Updated test data and stdlib sources.

This commit is contained in:
Evgeny Gerashchenko
2013-02-12 02:19:55 +04:00
parent 105d2d72de
commit b9e5704057
43 changed files with 96 additions and 78 deletions
@@ -3,15 +3,15 @@ trait B : A {
fun foo()
}
fun bar1(a: A, var b: B) {
b = a as B
fun bar1(a: A) {
var b: B = a as B
a.foo()
b.foo()
}
fun id(b: B) = b
fun bar2(a: A, var b: B) {
b = id(a as B)
fun bar2(a: A) {
var b: B = id(a as B)
a.foo()
b.foo()
}
@@ -1,5 +1,6 @@
fun bar1(x: Number, var y: Int) {
y += x as Int
fun bar1(x: Number, y: Int) {
var yy = y
yy += x as Int
x : Int
}
@@ -1,4 +1,5 @@
fun simpleDoWhile(x: Int?, var y: Int) {
fun simpleDoWhile(x: Int?, y0: Int) {
var y = y0
do {
x : Int?
y++
@@ -6,7 +7,8 @@ fun simpleDoWhile(x: Int?, var y: Int) {
x : Int
}
fun doWhileWithBreak(x: Int?, var y: Int) {
fun doWhileWithBreak(x: Int?, y0: Int) {
var y = y0
do {
x : Int?
y++
@@ -1,4 +1,5 @@
fun simpleWhile(x: Int?, var y: Int) {
fun simpleWhile(x: Int?, y0: Int) {
var y = y0
while (x!! == y) {
x : Int
y++
@@ -6,7 +7,8 @@ fun simpleWhile(x: Int?, var y: Int) {
x : Int
}
fun whileWithBreak(x: Int?, var y: Int) {
fun whileWithBreak(x: Int?, y0: Int) {
var y = y0
while (x!! == y) {
x : Int
break