Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Unified Diff: tests/language/regress_19413_test.dart

Issue 337663002: Handle ambiguous prefix members. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/regress_19413_foo.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/regress_19413_test.dart
diff --git a/tests/language/metadata_scope2_test.dart b/tests/language/regress_19413_test.dart
similarity index 57%
copy from tests/language/metadata_scope2_test.dart
copy to tests/language/regress_19413_test.dart
index 5bf647ec260754c94b001c430e2ff8f0a9747836..84ff099605353e83273d3816e2fdc56d2f399caa 100644
--- a/tests/language/metadata_scope2_test.dart
+++ b/tests/language/regress_19413_test.dart
@@ -2,14 +2,11 @@
// 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.
-// Test that a type variable is not in scope for metadata declared on the type
-// declaration.
+// Regression test for issue 19413.
-@deprecated
-class Foo
-<deprecated> /// 01: ok
-{}
+import 'regress_19413_foo.dart' as foo;
+import 'regress_19413_bar.dart' as foo;
main() {
- Foo f = null;
-}
+ foo.f(); /// 01: static type warning, runtime error
+}
« no previous file with comments | « tests/language/regress_19413_foo.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698