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
+17 -12
View File
@@ -1,22 +1,27 @@
// JET-81 Assertion fails when processing self-referring anonymous objects
val y = object {
val a = <error>y</error>
}
class Test {
private val y = object {
val a = <error>y</error>
}
val z = y.<error>a</error>;
val z = y.<error>a</error>;
}
object A {
val x = A
}
val a = object {
{
<error>b</error> <error>+</error> 1
class Test2 {
private val a = object {
{
<error>b</error> <error>+</error> 1
}
val x = <error>b</error>
val y = 1
}
val x = <error>b</error>
val y = 1
}
val b = <error>a</error>.<error>x</error>
val c = a.y
val b = <error>a</error>.<error>x</error>
val c = a.y
}