blob: 08a865b8e5cf1aedc55e0386cba8338bb1a74e3c [file] [log] [blame]
// Copyright (c) 2011, 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 correct handling of NULL object in invocation and implicit closures.
// @dart = 2.9
import "package:expect/expect.dart";
main() {
var nullObj = null;
var x = nullObj.toString();
Expect.isTrue(x is String);
var y = nullObj.toString;