blob: 34315c1e8d96ae793bd17f0b5a44ceb267967bf6 [file] [log] [blame]
// Copyright (c) 2012, 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.
class A {
int e = -1;
void main() {
new A().e = "String";
// ^^^^^^^^
// [cfe] A value of type 'String' can't be assigned to a variable of type 'int'.