Test for JET-17 Do not infer property types by the initializer before the containing scope is ready

Granular highlighting for redeclaration errors
This commit is contained in:
Andrey Breslav
2011-05-16 21:29:07 +04:00
parent 92e1391ca5
commit 7f07ae6aeb
3 changed files with 12 additions and 3 deletions
@@ -0,0 +1,6 @@
// JET-17 Do not infer property types by the initializer before the containing scope is ready
class WithC() {
val a = 1
val b = $a // error here, but must not be
}