mirror of
https://github.com/dart-lang/sdk
synced 2024-09-22 05:21:18 +00:00
bbf2eef54b
TBR Review URL: https://codereview.chromium.org//1006033004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44705 260f80e4-7a28-3924-810f-c04153c831b5
24 lines
512 B
Dart
24 lines
512 B
Dart
// Copyright (c) 2015, 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.
|
|
|
|
// Regression test for issue 22936.
|
|
|
|
import 'package:expect/expect.dart';
|
|
|
|
bool fooCalled = false;
|
|
|
|
foo() {
|
|
fooCalled = true;
|
|
return null;
|
|
}
|
|
|
|
main() {
|
|
final x = null;
|
|
try {
|
|
x = /// 01: static type warning
|
|
foo();
|
|
} on NoSuchMethodError {
|
|
}
|
|
Expect.isTrue(fooCalled);
|
|
} |