Report initializer block-related diagnostic on 'init' keyword

This commit is contained in:
Alexander Udalov
2016-11-02 15:51:13 +03:00
parent 68cf4bf440
commit eacf64e4db
7 changed files with 25 additions and 18 deletions
+5 -5
View File
@@ -1,13 +1,13 @@
interface NoC {
<error>init {
<error>init</error> {
}</error>
}
val a : Int get() = 1
<error>init {
<error>init</error> {
}</error>
}
}
class WithC() {
@@ -24,4 +24,4 @@ class WithC() {
val <warning>zz</warning> = x
}
}
}
+4 -4
View File
@@ -1,6 +1,6 @@
interface I {
<error>init {
<error>init</error> {
val c = 1
val g = c
}</error>
}
val <warning>g</warning> = c
}
}