blob: 8aa29ccab2600b7e972a9fcf9abcbf32c62026c5 [file] [log] [blame]
/*
* 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.
*/
/**
* @assertion Type dynamic denotes the unknown type. If no static type
* annotation has been provided the type system assumes the declaration has the
* unknown type.
* @description Checks that a local variable without any type annotation has the
* unknown type by expecting no static warnings for assigning it a String value.
* Note: all possible declarations are tested in the corresponding chapters.
* @static-clean
* @author iefremov
* @reviewer rodionov
*/
main() {
var x = 'foo';
}