OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 // VMOptions=-Da=x -Db=- -Dc=0xg |
| 5 |
| 6 main(List<String> args) { |
| 7 const int.fromEnvironment('a'); /// 01: compile-time error |
| 8 const int.fromEnvironment('b'); /// 02: compile-time error |
| 9 const int.fromEnvironment('c'); /// 03: compile-time error |
| 10 const int.fromEnvironment('NOT_FOUND', defaultValue: ''); /// 04: compile-tim
e error |
| 11 const int.fromEnvironment('NOT_FOUND', defaultValue: true); /// 05: compile-t
ime error |
| 12 const int.fromEnvironment(1); /// 06: compile-time error |
| 13 const int.fromEnvironment([]); /// 07: compile-time error |
| 14 } |
OLD | NEW |