Fix error in withoutFirstSegment
This commit is contained in:
@@ -35,7 +35,7 @@ public fun FqName.withoutFirstSegment(): FqName {
|
|||||||
if (isRoot() || parent().isRoot()) return FqName.ROOT
|
if (isRoot() || parent().isRoot()) return FqName.ROOT
|
||||||
|
|
||||||
val fqNameStr = asString()
|
val fqNameStr = asString()
|
||||||
return FqName(fqNameStr.substring(fqNameStr.indexOf('.'), fqNameStr.length()))
|
return FqName(fqNameStr.substring(fqNameStr.indexOf('.') + 1, fqNameStr.length()))
|
||||||
}
|
}
|
||||||
|
|
||||||
public fun FqName.numberOfSegments(): Int {
|
public fun FqName.numberOfSegments(): Int {
|
||||||
|
|||||||
Reference in New Issue
Block a user