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 // VMOptions=--fatal-type-errors | |
|
ericzundel
2011/12/22 21:53:10
--fatal-type-errors is dartc specific.
I think w
| |
| 6 | 7 |
| 7 #library("Prefix14NegativeTest.dart"); | 8 #library("Prefix21NegativeTest.dart"); |
| 8 #import("library12.dart", prefix:"lib12"); | 9 #import("library12.dart", prefix:"lib12"); |
| 9 | 10 |
| 10 class myClass { | 11 class myClass { |
| 11 myClass(lib12.Library13 this.fld); | 12 myClass(lib12.Library13 p) { // static type warning |
| 12 lib12.Library13 fld; | 13 } |
| 13 } | 14 } |
| 14 | 15 |
| 15 main() { | 16 main() { |
| 16 } | 17 } |
| OLD | NEW |