Support test directives in inline tests

This commit is contained in:
Michael Bogdanov
2016-04-03 15:25:36 +03:00
parent d319811101
commit f5166b7aef
61 changed files with 77 additions and 72 deletions
@@ -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
View File
@@ -1,5 +1,5 @@
// FILE: 1.kt
// WITH_REFLECT
package test
open class TypeRef<T> {
+1 -1
View File
@@ -1,5 +1,5 @@
// FILE: 1.kt
// WITH_REFLECT
package test
interface Call<T> {
+1 -1
View File
@@ -1,5 +1,5 @@
// FILE: 1.kt
// WITH_REFLECT
package test
+1 -1
View File
@@ -1,5 +1,5 @@
// FILE: 1.kt
// WITH_REFLECT
package test
public inline fun <reified T : Any> inlineMeIfYouCan(): String? =
+1 -1
View File
@@ -1,5 +1,5 @@
// FILE: 1.kt
// WITH_REFLECT
package test
import java.util.*
+1 -1
View File
@@ -1,5 +1,5 @@
// FILE: 1.kt
// WITH_REFLECT
package test
public abstract class A<T>