Update inline tests to void PROTECTED_CALL_FROM_PUBLIC_INLINE_ERROR
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
// !LANGUAGE: -ProhibitProtectedCallFromInline
|
||||||
// IGNORE_BACKEND_FIR: JVM_IR
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// !LANGUAGE: -ProhibitProtectedCallFromInline
|
||||||
// IGNORE_BACKEND_FIR: JVM_IR
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// !LANGUAGE: -ProhibitProtectedCallFromInline
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
|
|
||||||
// FILE: First.java
|
// FILE: First.java
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ abstract class Tag(val name: String) : Element() {
|
|||||||
val children = ArrayList<Element>()
|
val children = ArrayList<Element>()
|
||||||
val attributes = HashMap<String, String>()
|
val attributes = HashMap<String, String>()
|
||||||
|
|
||||||
inline protected fun <T : Element> initTag(tag: T, init: T.() -> Unit): T {
|
inline fun <T : Element> initTag(tag: T, init: T.() -> Unit): T {
|
||||||
tag.init()
|
tag.init()
|
||||||
children.add(tag)
|
children.add(tag)
|
||||||
return tag
|
return tag
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ abstract class Tag(val name: String) : Element() {
|
|||||||
val children = ArrayList<Element>()
|
val children = ArrayList<Element>()
|
||||||
val attributes = HashMap<String, String>()
|
val attributes = HashMap<String, String>()
|
||||||
|
|
||||||
inline protected fun <T : Element> initTag(tag: T, init: T.() -> Unit): T {
|
inline fun <T : Element> initTag(tag: T, init: T.() -> Unit): T {
|
||||||
tag.init()
|
tag.init()
|
||||||
children.add(tag)
|
children.add(tag)
|
||||||
return tag
|
return tag
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// !LANGUAGE: -ProhibitProtectedCallFromInline
|
||||||
// FILE: 1.kt
|
// FILE: 1.kt
|
||||||
|
|
||||||
package test
|
package test
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// !LANGUAGE: -ProhibitProtectedCallFromInline
|
||||||
// FILE: 1.kt
|
// FILE: 1.kt
|
||||||
|
|
||||||
package test
|
package test
|
||||||
|
|||||||
Reference in New Issue
Block a user