Add Safe Delete tests for extension functions and properties

This commit is contained in:
Alexey Sedunov
2014-01-23 14:56:28 +04:00
parent 572e09e9ea
commit 83c9c49125
31 changed files with 273 additions and 0 deletions
@@ -0,0 +1,13 @@
class A {
}
fun A.foo(<caret>a: Int, b: String, c: Any) {
}
class B {
fun bar(a: A) {
a.foo(1, "1", "!")
}
}
@@ -0,0 +1,13 @@
class A {
}
fun A.foo(b: String, c: Any) {
}
class B {
fun bar(a: A) {
a.foo("1", "!")
}
}
@@ -0,0 +1,13 @@
class A {
}
fun A.foo(a: Int, <caret>b: String, c: Any) {
}
class B {
fun bar(a: A) {
a.foo(1, "1", "!")
}
}
@@ -0,0 +1,13 @@
class A {
}
fun A.foo(a: Int, c: Any) {
}
class B {
fun bar(a: A) {
a.foo(1, "!")
}
}
@@ -0,0 +1,7 @@
package test;
class B {
void bar(A a) {
TestPackage.foo(a, 1, "1", "!");
}
}
@@ -0,0 +1,7 @@
package test;
class B {
void bar(A a) {
TestPackage.foo(a, "1", "!");
}
}
@@ -0,0 +1,9 @@
package test
class A {
}
fun A.foo(<caret>a: Int, b: String, c: Any) {
}
@@ -0,0 +1,9 @@
package test
class A {
}
fun A.foo(b: String, c: Any) {
}
@@ -0,0 +1,7 @@
package test;
class B {
void bar(A a) {
TestPackage.foo(a, 1, "1", "!");
}
}
@@ -0,0 +1,7 @@
package test;
class B {
void bar(A a) {
TestPackage.foo(a, 1, "!");
}
}
@@ -0,0 +1,9 @@
package test
class A {
}
fun A.foo(a: Int, <caret>b: String, c: Any) {
}
@@ -0,0 +1,9 @@
package test
class A {
}
fun A.foo(a: Int, c: Any) {
}