JET-16 Check property initializers as parts of the primary constructor's body

This commit is contained in:
Andrey Breslav
2011-04-26 18:47:16 +04:00
parent 64a8da3296
commit 244fc31da8
9 changed files with 135 additions and 61 deletions
+18 -1
View File
@@ -31,4 +31,21 @@ class WithPC1(a : Int) {
class Foo() : <error>WithPC0</error>, <error>this</error>() {
}
}
class WithCPI_Dup(<error>x : Int</error>) {
<error>var x : Int</error>
}
class WithCPI(x : Int) {
val a = 1
val b : Int = $a
val xy : Int = x
}
class NoCPI {
val a = <error>1</error>
var ab = <error>1</error>
get() = 1
set(v) {}
}