5ff2459d88
These annotations have all been replaced with @pragma('dart2js:xxx')
versions:
@ForceInline, @NoInline, @NoThrows, @NoSideEffects, @AssumeDynamic.
Change-Id: Ia4730670c6864ccbe0fa4120108c3c16ab887c23
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208863
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
24 lines
633 B
Dart
24 lines
633 B
Dart
// Copyright (c) 2016, 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.
|
|
|
|
// Test for dart2js initialization of dispatchPropertyName.
|
|
|
|
import 'package:expect/minitest.dart';
|
|
|
|
import 'js_dispatch_property_test_lib.dart';
|
|
|
|
@pragma('dart2js:noInline')
|
|
@pragma('dart2js:assumeDynamic')
|
|
confuse(x) => x;
|
|
|
|
main() {
|
|
group('group', () {
|
|
test('test', () {
|
|
// Force dynamic interceptor dispatch.
|
|
var a = confuse(create());
|
|
expect(a.foo('A'), equals('Foo A'));
|
|
});
|
|
});
|
|
}
|