blob: 5f152f1cbaed55a55861cf72b07de9c2c0b4443b [file] [log] [blame]
/*
* Copyright (c) 2011, 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
* libraryExport:
* metadata export uri combinator* `;'
* ;
* @description Checks that it is not an error when the identifiers used with show/hide combinators
* are also named 'hide' and 'show', and that filtering the export namespace is done correctly.
* @static-warning
* @author rodionov
* @reviewer kaigorodov
*/
import "../../Utils/expect.dart";
import "2_Exports_A01_t02_lib.dart";
main() {
Expect.equals(hide, "hide");
try {
var x = show; /// static type warning cannot resolve
Expect.fail("NoSuchMethodError expected");
} on NoSuchMethodError catch(ok) {}
try {
var x = foo; /// static type warning cannot resolve
Expect.fail("NoSuchMethodError expected");
} on NoSuchMethodError catch(ok) {}
}