From dd2696058a207337c2d52263308abb7cd858e26f Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Wed, 16 Jun 2021 00:30:54 +0200 Subject: [PATCH] ElementBuilder is a fun interface --- .../src/jsMain/kotlin/androidx/compose/web/elements/Base.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Base.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Base.kt index c77e83d469..7e703b8367 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Base.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Base.kt @@ -102,7 +102,7 @@ private open class ElementBuilderImplementation(private val override fun create(): TElement = DomProvider.get(tagName).cloneNode() as TElement } -interface ElementBuilder { +fun interface ElementBuilder { fun create(): TElement companion object {