/*
 * Copyright (c) 2015, 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 Evaluation of a property extraction i of the form new T#
 * proceeds as follows:
 * ...
 * If T does not denote a class, a dynamic error occurs.
 * @description Check that it is a dynamic error if T denotes enum
 * @author sgrekhov@unipro.ru
 */
import '../../../../Utils/dynamic_check.dart';

enum E {a, b, c, m}

main() {
  checkDynamicError(() {
    var x = new E#;
  });
}

/*
 * Copyright (c) 2015, 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 Evaluation of a property extraction i of the form new T#
 * proceeds as follows:
 * ...
 * If T does not denote a class, a dynamic error occurs.
 * @description Check that it is a dynamic error if T denotes not existing class
 * @author sgrekhov@unipro.ru
 */
import '../../../../Utils/dynamic_check.dart';

main() {
  checkDynamicError(() {
    var x = new C#;
  });
}

Test fixed. Don't try instantiate enum
Test fixed. Don't try instantiate enum
