1
0
Fork 0

[#25] [#25] Re-added accidently removed portion of test

closure/master
Mike Gerwitz 2011-10-22 01:07:07 -04:00
parent f9b951ddb2
commit 6e7e031ff9
2 changed files with 4 additions and 4 deletions

View File

@ -22,9 +22,6 @@
* @package core * @package core
*/ */
// XXX: remove dependency
var Warning = require( __dirname + '/warn' ).Warning;
module.exports = exports = function MemberBuilderValidator() module.exports = exports = function MemberBuilderValidator()
{ {
@ -150,7 +147,7 @@ exports.prototype.validateMethod = function(
// supertype, unless otherwise specified // supertype, unless otherwise specified
// //
// IMPORTANT: do this last, to ensure we throw errors before warnings // IMPORTANT: do this last, to ensure we throw errors before warnings
if ( !( keywords[ 'new' ] || keywords[ 'override' ] ) ) if ( !( keywords[ 'override' ] )
{ {
if ( !( prev_keywords[ 'abstract' ] ) ) if ( !( prev_keywords[ 'abstract' ] ) )
{ {

View File

@ -524,6 +524,8 @@ var common = require( './common' ),
}, Error, "Can escalate visibility of subtype members" ); }, Error, "Can escalate visibility of subtype members" );
// same level of visibility // same level of visibility
assert.doesNotThrow( function()
{
Class( Class(
{ {
'protected foo': 'bar', 'protected foo': 'bar',
@ -532,6 +534,7 @@ var common = require( './common' ),
'protected foo': 'bar', 'protected foo': 'bar',
'override protected baz': function() {}, 'override protected baz': function() {},
} ); } );
}, Error, "Can retain level of visibility for subtype members" );
} )(); } )();