diff --git a/lib/util.js b/lib/util.js index 323a55f..4ee8d7b 100644 --- a/lib/util.js +++ b/lib/util.js @@ -270,7 +270,7 @@ function method_override( if ( arg_len < super_method.definition.length ) { throw new Error( - "Declaration of " + name + " must be compatiable" + + "Declaration of " + name + " must be compatiable " + "with that of its supertype" ); } diff --git a/test/test-interface-extend.js b/test/test-interface-extend.js index 8e231f1..ec9ae51 100644 --- a/test/test-interface-extend.js +++ b/test/test-interface-extend.js @@ -70,3 +70,11 @@ assert.ok( "Interface contains defined abstract methods" ); + +var SubType = Interface.extend( BaseType, {} ); + +assert.ok( + ( SubType instanceof BaseType ), + "Generic interface extend method can extend from other interfaces" +); +