blob: c27d3d597a3ff07c983820d51974d8a6a75a77dd [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;
int main() {
new A().e = "String";
// ^^^^^^^^
// [cfe] A value of type 'String' can't be assigned to a variable of type 'int'.