Files
sdk/tests/language_2/async_backwards_compatibility_1_test.dart
T
Paul Berry cf67e402bd Add test case reproducing issues #34498 and #34500.
Also modify async_backwards_compatibility_1_test so that fixing these
bugs won't cause it to start failing.

Change-Id: I7bb3b9587a0aeea8662df1923034bcb409a29522
Reviewed-on: https://dart-review.googlesource.com/75280
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-09-19 16:37:15 +00:00

25 lines
498 B
Dart

// Copyright (c) 2014, 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 'dart:async';
import 'async_helper_lib.dart' as async;
class A {
async.async get x => null;
}
class B {
int get async => null;
}
async.async topLevel() => null;
main() {
var a = new A();
var b = a.x;
var c = topLevel();
var d = new B();
var e = d.async;
}