TypeAccessibilityChecker: add more tests

This commit is contained in:
Dmitry Gridin
2019-08-21 18:19:37 +07:00
parent 84d167b7bd
commit 73ae993d81
68 changed files with 412 additions and 29 deletions
@@ -0,0 +1,5 @@
package a
import b.B
expect class A : B
@@ -0,0 +1,3 @@
package b
open class B
@@ -0,0 +1,6 @@
// "Create expected class in common module testModule_Common" "true"
package a
import b.B
actual class <caret>A : B()
@@ -1 +0,0 @@
// To be implemented
@@ -1,7 +0,0 @@
// "Create expected function in common module testModule_Common" "true"
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo(some: List<T>){...}
// DISABLE-ERRORS
interface Some
actual fun <T : Some> <caret>foo(some: List<T>) {}
@@ -1,7 +0,0 @@
// "Create expected function in common module testModule_Common" "true"
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo(some: List<T>){...}
// DISABLE-ERRORS
interface Some
actual fun <T : Some> foo(some: List<T>) {}
@@ -1 +0,0 @@
// To be implemented
@@ -1,7 +0,0 @@
// "Create expected function in common module testModule_Common" "true"
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo(some: Some){...}
// DISABLE-ERRORS
class Some
actual fun <caret>foo(some: Some) {}
@@ -1,7 +0,0 @@
// "Create expected function in common module testModule_Common" "true"
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo(some: Some){...}
// DISABLE-ERRORS
class Some
actual fun foo(some: Some) {}
@@ -1 +0,0 @@
// To be implemented
@@ -1,7 +0,0 @@
// "Create expected function in common module testModule_Common" "true"
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo(some: List<Some>){...}
// DISABLE-ERRORS
class Some
actual fun <caret>foo(some: List<Some>) {}
@@ -1,7 +0,0 @@
// "Create expected function in common module testModule_Common" "true"
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo(some: List<Some>){...}
// DISABLE-ERRORS
class Some
actual fun foo(some: List<Some>) {}
@@ -0,0 +1,3 @@
expect class A<T> {
inner class B<F : T>
}
@@ -0,0 +1,6 @@
// "Create expected class in common module testModule_Common" "true"
// DISABLE-ERRORS
class A<T> {
actual inner class <caret>B<F : T>
}
@@ -0,0 +1,6 @@
// "Create expected class in common module testModule_Common" "true"
// DISABLE-ERRORS
actual class A<T> {
actual inner class <caret>B<F : T>
}
@@ -0,0 +1,4 @@
expect open class A<T : A<T>> {
class C<T>
inner class B<F : C<C<C<A<T>>>>>
}
@@ -0,0 +1,7 @@
// "Create expected class in common module testModule_Common" "true"
// DISABLE-ERRORS
actual open class <caret>A<T: A<T>> {
actual class C<T>
actual inner class B<F : C<C<C<A<T>>>>>
}
@@ -0,0 +1,7 @@
// "Create expected class in common module testModule_Common" "true"
// DISABLE-ERRORS
actual open class A<T: A<T>> {
actual class C<T>
actual inner class B<F : C<C<C<A<T>>>>>
}
@@ -0,0 +1,5 @@
expect class A {
class M
fun a(): M
}
@@ -0,0 +1,7 @@
// "Create expected class in common module testModule_Common" "true"
// DISABLE-ERRORS
class A {
actual class M
actual fun <caret>a(): M = TODO()
}
@@ -0,0 +1,7 @@
// "Create expected class in common module testModule_Common" "true"
// DISABLE-ERRORS
actual class A {
actual class M
actual fun <caret>a(): M = TODO()
}
@@ -0,0 +1,3 @@
// To be implemented
class Some<T>
@@ -0,0 +1,5 @@
// To be implemented
class Some<T>
expect val <T> Some<T>.<caret>foo: Some<T>
@@ -0,0 +1,4 @@
// "Create expected property in common module testModule_Common" "true"
// DISABLE-ERRORS
actual val <T> Some<T>.<caret>foo: Some<T> get() = TODO()