blob: e9be73dee8050a91dcd9ce1b1b539f522b8b4cd6 [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.
/// @assertion A cascaded method invocation expression of the form e..suffix
/// is equivalent to the expression (t){t.suffix; return t;}(e).
/// @description Checks that if evaluation of suffix raises an exception
/// a cascaded invocation raises the same exception.
/// @author msyabro
import '../../../../Utils/expect.dart';
class C {}
main() {
dynamic o = new C();
Expect.throws(() {var result = o..method();}, (e) => e is NoSuchMethodError);
}