diff --git a/lib/less/visitors/extend-visitor.js b/lib/less/visitors/extend-visitor.js index 06f37c51..5792ef35 100644 --- a/lib/less/visitors/extend-visitor.js +++ b/lib/less/visitors/extend-visitor.js @@ -105,7 +105,7 @@ ProcessExtendsVisitor.prototype = { }, checkExtendsForNonMatched: function(extendList) { extendList.filter(function(extend) { - return !extend.hasFoundMatches; + return !extend.hasFoundMatches && extend.parent_ids.length == 1; }).forEach(function(extend) { var selector = "_unknown_"; try {