blob: 866b7e69444e4a3f44ccc6d031d78ca341ee5f38 [file] [log] [blame]
// 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.
// @dart = 2.9
// 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'));
});
});
}