blob: b08d3fbec54287ab2dab923d309c450758a0daf5 [file] [log] [blame]
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* @assertion an extension declaration is a top-level declaration with a grammar
* similar to:
* <extension> ::=
* `extension' <identifier>? <typeParameters>? `on' <type> `?'? `{'
* memberDeclaration*
* `}'
* Such a declaration introduces its name (the identifier) into the surrounding
* scope
*
* @description Check an empty extension
* @author sgrekhov@unipro.ru
*/
class C {}
extension MyC on C {}
main() {
new C();
}