blob: 8e20564a20b5f3fb77d9b9865c0cb3f69af3bd19 [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 A variable declaration statement declares a new local variable.
* localVariableDeclaration:
* initializedVariableDeclaration ’;’ .
* @description Checks that a variable declaration statement var id; introduces
* a new variable id with static type dynamic into the innermost enclosing scope.
* @author vasya
* @reviewer rodionov
* @reviewer iefremov
*/
import "../../Utils/expect.dart";
class C {}
main() {
var id;
Expect.isTrue(id is dynamic);
id = false;
id = "";
id = 2;
id = new C();
id = (){};
}