linkTo method
Add parent Scopes to allow instance resolution i.e: linkTo(scopeC) - allow to resolve instance to current scope and scope.
@param scopes - Scopes to link with
Implementation
void linkTo(List<Scope> scopes) {
if (!scopeDefinition.isRoot) {
_linkedScope.addAll(KtList.from(scopes));
} else {
throw IllegalStateException("Can't add scope link to a root scope");
}
}