Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Unresolved symbols should be reported as an error. | 5 // Unresolved symbols should be reported as an static type warnings. |
| 6 // In this variant of test we turn warnings into errors. | |
| 7 // VMOptions=--fatal-type-errors --enable_type_errors | |
|
regis
2012/02/23 19:39:33
The VM neither supports --fatal-type-errors nor --
| |
| 6 | 8 |
| 7 #library("Prefix14NegativeTest.dart"); | 9 #library("Prefix22NegativeTest.dart"); |
| 8 #import("library12.dart", prefix:"lib12"); | 10 #import("library12.dart", prefix:"lib12"); |
| 9 | 11 |
| 10 class myClass { | 12 class myClass { |
| 11 myClass(lib12.Library13 this.fld); | 13 lib12.Library13 fld; // static type warning |
| 12 lib12.Library13 fld; | |
| 13 } | 14 } |
| 14 | 15 |
| 15 main() { | 16 main() { |
| 16 } | 17 } |
| OLD | NEW |