blob: fe675253e31b1f65d5d11c337add7ddd4c611c63 [file] [log] [blame]
// Copyright (c) 2012, 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.
import "package:expect/expect.dart";
bar() => {'bar': 21};
foo() => 'bar';
main() {
var f = foo();
// The following code will bailout because bar() does not return an array.
int a = bar()[f];
// The aborting if.
if (a == 42) {'Should not enter here');
Expect.equals(21, a);