Update inline tests to void PROTECTED_CALL_FROM_PUBLIC_INLINE_ERROR

This commit is contained in:
Mikhael Bogdanov
2019-12-19 10:46:00 +01:00
parent 8322398133
commit 650cfeaaed
7 changed files with 7 additions and 2 deletions
@@ -1,3 +1,4 @@
// !LANGUAGE: -ProhibitProtectedCallFromInline
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
@@ -1,3 +1,4 @@
// !LANGUAGE: -ProhibitProtectedCallFromInline
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
@@ -1,3 +1,4 @@
// !LANGUAGE: -ProhibitProtectedCallFromInline
// TARGET_BACKEND: JVM
// FILE: First.java
+1 -1
View File
@@ -26,7 +26,7 @@ abstract class Tag(val name: String) : Element() {
val children = ArrayList<Element>()
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()
children.add(tag)
return tag
@@ -26,7 +26,7 @@ abstract class Tag(val name: String) : Element() {
val children = ArrayList<Element>()
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()
children.add(tag)
return tag
@@ -1,3 +1,4 @@
// !LANGUAGE: -ProhibitProtectedCallFromInline
// FILE: 1.kt
package test
@@ -1,3 +1,4 @@
// !LANGUAGE: -ProhibitProtectedCallFromInline
// FILE: 1.kt
package test