Front-end: Prohibit to create inner class with the same name as a property

This commit is contained in:
Natalia.Ukhorskaya
2012-08-31 11:15:57 +04:00
parent 5038c906b2
commit 1ef8818556
3 changed files with 53 additions and 14 deletions
@@ -0,0 +1,13 @@
public class A() {
public val <!REDECLARATION!>FOO<!>: String = "test"
public class <!REDECLARATION!>FOO<!>() { }
}
public class B() {
class object {
public val <!REDECLARATION!>FOO<!>: String = "test"
public class <!REDECLARATION!>FOO<!>() { }
}
}