blob: ead4811efa65e7645a04d0248882641594aee680 [file] [log] [blame]
* 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 It is a compile time error if the expression is not one of the
* following:
* • A reference to a compile-time constant variable.
* • A call to a constant constructor.
* @description Check that it is a compile time error, if qualified identifier
* is not complete
* @compile-error
* @issue #24280
* @author
import 'dart:mirrors';
import '../../Utils/expect.dart';
import 'syntax_lib2.dart' as syntax_lib2;
class B {}
main() {
// have to retrieve metadata to get the compile error'Compilation error is expected, but retrieved metadata: ' +
reflectClass(B) (e) => e.reflectee ).join(' '));