blob: 78e9ac8b794f670bed3b026f419c827c7ee625ab [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.
/// @author iefremov
main() {
var x = 'foo';
}