Partial fix for KT-470: Remove duplicating errors on the same element.

Redeclarations for top-level properties still get two REDECLARATION diagnostics. (In overload resolver and declaration resolver)
Also added test for redeclaring extension properties.
Also remove useless null check.
This commit is contained in:
Pavel V. Talanov
2012-07-26 13:09:49 +04:00
parent 1691298539
commit fa1c471d92
5 changed files with 92 additions and 14 deletions
@@ -0,0 +1,9 @@
class A() {
val a: Int = 1
fun a(): Int = 2
}
class B() {
fun b(): Int = 2
val b: Int = 1
}