EA-41207 - IAE: NameUtils.requireIdentifier

Test data files renamed
This commit is contained in:
Andrey Breslav
2013-01-30 11:56:50 +04:00
parent cd56b2f401
commit d31e53fa59
31 changed files with 9 additions and 17 deletions
+37
View File
@@ -0,0 +1,37 @@
~A~class A {
~B~class B {
~B()~this(i: Int) {}
}
~foo~fun foo(~foo.a~a : `kotlin::Char`Char) = `foo.a`a`:kotlin::Char`
~fooB~fun fooB() = `foo`foo('1')`:kotlin::Char`
~foo.1~fun foo() : Int = (1.`kotlin::Int.plus(Int)`plus(1))`:kotlin::Int`
~foo1~fun foo1() : `B`B = `B`B()`:B`
~A.a~val a : `kotlin::Int`Int
}
~C~class C : `A`A {
~C.B~class B : `C`C {
}
val x : `C.B`B
}
fun test() : Unit {
for (~i~i in 1..2) {
`i`i`:kotlin::Int`
}
for (val ~j~j in 1..2) {
`j`j`:kotlin::Int`
}
for (val ~k~k : Int in 1..2) {
`k`k`:kotlin::Int`
}
for (~l~l : Int in 1..2) {
`l`l`:kotlin::Int`
while (true) {
`l`l
}
}
}