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
@@ -0,0 +1,35 @@
fun <~T~T, ~E~E> `T`T.foo(x : `E`E, y : `A`A) : `T`T {
y.`+`plus(1)
y `+`plus 1
y `+1`+ 1.0
this?.`-`minus<T>(this)
this
}
~A~class A
~+1~fun `A`A.plus(a : Any) {
1.`foo`foo()
true.`!null`foo()
1
}
~+~fun `A`A.plus(a : Int) {
1
}
~-~fun <T> T.minus(t : T) : Int = 1
fun test() {
val y = 1.`abs`abs
}
~abs~val Int.abs : Int
get() = if (this`:kotlin::Int` > 0) this else -this`:kotlin::Int`;
val <~TT~T> `TT`T.foo : `TT`T
~foo~fun Int.foo() = this`:kotlin::Int`