Adjust testData: get rid of obsolete annotations

This commit is contained in:
Denis Zharkov
2015-06-09 20:30:52 +03:00
parent 053dcf3abf
commit c9f79c2d05
193 changed files with 322 additions and 322 deletions
@@ -18,7 +18,7 @@ fun box() : String {
if( 1.(fun Int.(i: Int) = i + this)(1) != 2) return "test 6 failed";
if( (fooT1<String>()("mama")) != "mama") return "test 7 failed";
val a = [A] fun Int.() = this + 1
val a = @A fun Int.() = this + 1
if (1.a() != 2) return "test 8 failed"
val b = ( fun Int.() = this + 1)
if (1.b() != 2) return "test 9 failed"
@@ -18,7 +18,7 @@ fun box() : String {
if( 1.(fun Int.name(i: Int) = i + this)(1) != 2) return "test 6 failed";
if( (fooT1<String>()("mama")) != "mama") return "test 7 failed";
val a = [A] fun Int.name() = this + 1 // name
val a = @A fun Int.name() = this + 1 // name
if (1.a() != 2) return "test 8 failed"
val b = ( fun Int.name() = this + 1)
if (1.b() != 2) return "test 9 failed"
+1 -1
View File
@@ -3,7 +3,7 @@ package t
class Reproduce {
fun test(): String {
[data] class Foo(val bar: String, val baz: Int)
@data class Foo(val bar: String, val baz: Int)
val foo = Foo("OK", 5)
return foo.bar
}
@@ -1,9 +1,9 @@
annotation class Anno
[Anno] val Int.foo: Int
@Anno val Int.foo: Int
get() = this
[Anno] val String.foo: Int
@Anno val String.foo: Int
get() = 42
fun box() = if (42.foo == 42 && "OK".foo == 42) "OK" else "Fail"