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
+36
View File
@@ -0,0 +1,36 @@
~T~trait T {
fun foo() {}
}
~C~open class C() {
fun bar() {}
}
~A~class A<E>() : C(), T {
fun test() {
`T`super<T>.foo()
`C`super<C>.bar()
`T`super<T>@A.foo()
`C`super<C>@A.bar()
}
inner class B : T {
fun test() {
`T`super<T>.foo();
`C`super<C>@A.bar()
`T`super<T>@A.foo()
`T`super<T>@B.foo()
`T`super.foo()
}
}
}
~G~trait G<T> {
fun foo() {}
}
class CG : G<Int> {
fun test() {
`G`super<`G`G>.foo() // OK
}
}