Only normalize names when accessing PSI, not earlier

#KT-4833 Fixed
This commit is contained in:
Andrey Breslav
2014-06-10 11:34:54 +04:00
parent ef7b43ecdc
commit bb581bb645
14 changed files with 130 additions and 51 deletions
@@ -0,0 +1,17 @@
// !DIAGNOSTICS: -REDECLARATION
class C {
fun<!SYNTAX!><!> () {
}
val<!SYNTAX!><!> : Int = 1
class<!SYNTAX!><!> {}
enum class<!SYNTAX!><!> {}
}
class C1<in<!SYNTAX!>><!><!SYNTAX!><!> {}
class C2(val<!SYNTAX!><!>) {}
@@ -0,0 +1,26 @@
// !DIAGNOSTICS: -REDECLARATION
package<!SYNTAX!><!>
fun<!SYNTAX!><!> () {
}
val<!SYNTAX!><!> : Int = 1
class<!SYNTAX!><!> {
}
trait<!SYNTAX!><!> {
}
object <!SYNTAX!><!>{
}
enum class<!SYNTAX!><!> {}
annotation class<!SYNTAX!><!> <!ANNOTATION_CLASS_WITH_BODY!>{}<!>