Adjust testData: get rid of obsolete annotations
This commit is contained in:
+1
-1
@@ -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"
|
||||
|
||||
+1
-1
@@ -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
@@ -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
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user