// 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. class A { var t; A() : t = (() => []); } class B { var t; B() : t = (() => T); } expect(result, expected) { if (result != expected) { throw 'Expected $expected, got $result'; } } main() { expect(new A().t() is List, true); expect(new A().t() is List, false); expect(new B().t() is Type, true); expect(new B().t(), int); }