Fix of root namespace

This commit is contained in:
Andrew Golovashevich 2025-04-01 01:51:56 +03:00
parent e97e198f75
commit 5ac338d8b7

View File

@ -37,6 +37,9 @@ public class Namespace(
}
public companion object {
public val ROOT: Namespace = Namespace("", arrayOf())
@Deprecated("Root namespace isn't global object, so you need to create it again each time you use it", replaceWith = ReplaceWith("this.newRootNamespace()"))
public val ROOT: Namespace get() = this.newRootNamespace()
public fun newRootNamespace(): Namespace = Namespace("", arrayOf())
}
}