blob: d61e3bb3afd845d00d4feb4160cc72d649b1e55c [file] [log] [blame]
// Copyright (c) 2013, 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.
// Test inherited fields.
library test.inherit_field_test;
import 'dart:mirrors';
import 'stringify.dart';
class Foo {
var field;
}
class Bar extends Foo {
}
void main() {
expect('Variable(s(field) in s(Foo))',
reflectClass(Foo).members[new Symbol('field')]);
expect('<null>',
reflectClass(Bar).members[new Symbol('field')]);
}