| 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
|
| +}
|
|
|