blob: 049201b6a7b67db84b3c1c167ca650ee4a2241ac [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';
}