Chromium Code Reviews| Index: tests/language/src/Prefix22NegativeTest.dart |
| diff --git a/tests/language/src/Prefix22NegativeTest.dart b/tests/language/src/Prefix22NegativeTest.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c056d5da2a778e5c9f606056588b85cff62c70c3 |
| --- /dev/null |
| +++ b/tests/language/src/Prefix22NegativeTest.dart |
| @@ -0,0 +1,19 @@ |
| +// 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. |
| +// |
| +// Unresolved symbols should be reported as an static type warnings. |
| +// In this variant of test we turn warnings into errors. |
| +// VMOptions=--fatal-type-errors --enable_type_errors |
|
regis
2012/02/23 19:39:33
The VM neither supports --fatal-type-errors nor --
|
| + |
| +#library("Prefix21NegativeTest.dart"); |
| +#import("library12.dart", prefix:"lib12"); |
| + |
| +class myClass { |
| + myClass(lib12.Library13 p) { // static type warning |
| + } |
| +} |
| + |
| +main() { |
| + new myClass(null); |
| +} |