// 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";

class A {
  x(p1, p2) {
    print(p1 * p2);
    if (p1 * p2 == 12) return;
    x("3", "4");
  }
}

main() => Expect.throws(() => new A().x(1, 2),
                        (e) => e is NoSuchMethodError);

// 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";

class A {
  x(p1, p2) {
    print(p1 * p2);
    if (p1 * p2 == 12) return;
    x("3", "4");
  }
}

main() {
  Expect.throws(() => new A().x(1, 2));
}

Change regression test now that String does have operator*.
Change regression test now that String does have operator*.

It still doesn't work for string arguments, but that's a type/argument error.

Review URL: https://codereview.chromium.org//173543002

git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@32845 260f80e4-7a28-3924-810f-c04153c831b5
