Support test directives in inline tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
// WITH_RUNTIME
|
||||
package test
|
||||
|
||||
inline fun <reified R> foo() = bar<R>() {"OK"}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
// WITH_REFLECT
|
||||
package test
|
||||
|
||||
inline fun <reified R, T> bar(crossinline tasksFactory: () -> T) = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
// WITH_RUNTIME
|
||||
package test
|
||||
|
||||
class A
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
// WITH_RUNTIME
|
||||
package test
|
||||
|
||||
inline fun <reified T, reified R>T.castTo(): R = this as R
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
// WITH_RUNTIME
|
||||
package test
|
||||
|
||||
class A
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
// WITH_RUNTIME
|
||||
package test
|
||||
|
||||
class A
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
// WITH_RUNTIME
|
||||
package test
|
||||
|
||||
class A
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
// WITH_REFLECT
|
||||
package test
|
||||
|
||||
open class TypeRef<T> {
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
// WITH_REFLECT
|
||||
package test
|
||||
|
||||
interface Call<T> {
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
// WITH_REFLECT
|
||||
package test
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
// WITH_REFLECT
|
||||
package test
|
||||
|
||||
public inline fun <reified T : Any> inlineMeIfYouCan(): String? =
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
// WITH_REFLECT
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
// WITH_REFLECT
|
||||
package test
|
||||
|
||||
public abstract class A<T>
|
||||
|
||||
Reference in New Issue
Block a user