split some tests in JetDiagnosticsTest

This commit is contained in:
Stepan Koltsov
2012-03-12 22:53:50 +04:00
parent 7a00e3a26a
commit 8be79b3f22
11 changed files with 132 additions and 118 deletions
@@ -0,0 +1,29 @@
package toplevelObjectDeclarations
open class Foo(y : Int) {
open fun foo() : Int = 1
}
class T : <!SUPERTYPE_NOT_INITIALIZED!>Foo<!> {}
object A : <!SUPERTYPE_NOT_INITIALIZED!>Foo<!> {
val x : Int = 2
fun test() : Int {
return x + foo()
}
}
object B : <!UNRESOLVED_REFERENCE!>A<!> {}
val x = A.foo()
val y = object : Foo(x) {
{
x + 12
}
override fun foo() : Int = 1
}
val z = y.foo()