Files
kotlin-fork/compiler/testData/diagnostics/tests/redeclarations/ConflictingExtensionProperties.kt
T
Pavel V. Talanov fa1c471d92 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.
2012-07-26 13:11:38 +04:00

5 lines
85 B
Kotlin

package foo
val Int.<!REDECLARATION!>foo<!> = 2
val Int.<!REDECLARATION!>foo<!> = 3