Test fixes for 'New diagnostic error for ambiguous object expression type'

This commit is contained in:
Mikhael Bogdanov
2013-02-19 14:36:50 +04:00
parent 1662c5cb75
commit 029b2d9770
7 changed files with 88 additions and 56 deletions
@@ -1,17 +1,22 @@
package foo
val a = object {
fun c() = 3
fun b() = 2
}
class Test {
private val a = object {
fun c() = 3
fun b() = 2
}
fun box(): Boolean {
fun doTest(): Boolean {
if (a.c() != 3) {
return false;
}
if (a.b() != 2) {
return false;
}
return true;
}
}
}
fun box(): Boolean {
return Test().doTest();
}