22ab27256e
null.runtimeType.toString() returned "JSNull". reflect(null).type.superInterfaces mirrored on the interceptor and contained Null in the list. reflect(null).getField was trying to cache the getters on the object and failed. BUG= http://dartbug.com/16741 BUG= http://dartbug.com/12482 R=karlklose@google.com, kasperl@google.com Committed: https://code.google.com/p/dart/source/detail?r=32650 Reverted: https://code.google.com/p/dart/source/detail?r=32652 Committed: https://code.google.com/p/dart/source/detail?r=32654 Reverted: https://code.google.com/p/dart/source/detail?r=32665 Review URL: https://codereview.chromium.org//161333002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32692 260f80e4-7a28-3924-810f-c04153c831b5
17 lines
465 B
Dart
17 lines
465 B
Dart
// 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.
|
|
|
|
library test.null_test;
|
|
|
|
import 'dart:mirrors';
|
|
|
|
import 'package:expect/expect.dart';
|
|
|
|
main() {
|
|
InstanceMirror nullMirror = reflect(null);
|
|
for (int i = 0; i < 10; i++) {
|
|
Expect.isTrue(nullMirror.getField(#hashCode).reflectee is int);
|
|
}
|
|
}
|