Test fixes for 'New diagnostic error for ambiguous object expression type'
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user