blob: b0a1dd9227b2c075eca7230580982270dae269f5 [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
*/
main() {
var x = 'foo';
}