Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 static type warnings. | 5 // Unresolved symbols should be reported as an static type warnings. |
| 6 // In this variant of test we turn warnings into errors. | 6 // In this variant of test we turn warnings into errors. |
| 7 // VMOptions=--fatal-type-errors --enable_type_checks | 7 // VMOptions= --enable_type_errors |
|
zundel
2012/03/02 23:51:00
reverted
| |
| 8 | 8 |
| 9 #library("Prefix21NegativeTest.dart"); | 9 #library("Prefix21NegativeTest.dart"); |
| 10 #import("library12.dart", prefix:"lib12"); | 10 #import("library12.dart", prefix:"lib12"); |
| 11 | 11 |
| 12 class myClass { | 12 class myClass { |
| 13 myClass(lib12.Library13 p) { // static type warning | 13 myClass(lib12.Library13 p) { /// static type error |
| 14 } | 14 } |
| 15 } | 15 } |
| 16 | 16 |
| 17 main() { | 17 main() { |
| 18 new myClass(null); | 18 new myClass(null); |
| 19 } | 19 } |
| OLD | NEW |