mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-24 05:25:19 +00:00
added unit test andfixed hasInTree method
This commit is contained in:
@@ -70,6 +70,6 @@ class DiContainer {
|
||||
* @return - возвращает булево значение
|
||||
*/
|
||||
bool hasInTree<T>() {
|
||||
return has<T>() || (_parent != null && _parent.hasInTree());
|
||||
return has<T>() || (_parent != null && _parent.hasInTree<T>());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user