Add IC scope expansion tests
#KT-13677
#KT-28233
Original commit: c912f76d6f
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
interface Foo {
|
||||||
|
val value: TypeAlias
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
class FooImpl : Foo {
|
||||||
|
override val value: TypeAlias
|
||||||
|
get() = "0"
|
||||||
|
}
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
class FooImpl : Foo {
|
||||||
|
override val value: TypeAlias
|
||||||
|
get() = 1
|
||||||
|
}
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
typealias TypeAlias = String
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
typealias TypeAlias = Int
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
================ Step #1 =================
|
||||||
|
|
||||||
|
Compiling files:
|
||||||
|
src/Foo.kt
|
||||||
|
src/FooImpl.kt
|
||||||
|
src/TypeAlias.kt
|
||||||
|
End of files
|
||||||
|
Exit code: OK
|
||||||
|
------------------------------------------
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
fun dummy() {}
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
open class A {
|
||||||
|
protected open fun foo(): Int = 0
|
||||||
|
}
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
open class A {
|
||||||
|
open fun foo(): Int = 0
|
||||||
|
}
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
open class B : A() {
|
||||||
|
override fun foo(): Int = 1
|
||||||
|
}
|
||||||
+9
@@ -0,0 +1,9 @@
|
|||||||
|
================ Step #1 =================
|
||||||
|
|
||||||
|
Compiling files:
|
||||||
|
src/a.kt
|
||||||
|
src/b.kt
|
||||||
|
src/usage.kt
|
||||||
|
End of files
|
||||||
|
Exit code: OK
|
||||||
|
------------------------------------------
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
package other
|
||||||
|
|
||||||
|
fun other() = "other"
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
|
||||||
|
}
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
B().foo()
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user