Switch tests for default lambda inlining on language level 1.2
This commit is contained in:
+1
-1
@@ -1,4 +1,5 @@
|
||||
// FILE: 1.kt
|
||||
// LANGUAGE_VERSION: 1.2
|
||||
// SKIP_INLINE_CHECK_IN: inlineFun$default
|
||||
//WITH_RUNTIME
|
||||
package test
|
||||
@@ -6,7 +7,6 @@ package test
|
||||
class OK
|
||||
class FAIL
|
||||
|
||||
@Suppress("NOT_YET_SUPPORTED_IN_INLINE")
|
||||
inline fun <reified T> inlineFun(lambda: () -> String = { T::class.java.simpleName }): String {
|
||||
return lambda()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user