Fix of root namespace
This commit is contained in:
parent
e97e198f75
commit
5ac338d8b7
@ -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())
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user