blob: 1423ff47cf0d06e20e1bf146050cce5e115c8794 [file] [log] [blame]
// Copyright (c) 2019, 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.7
//
// dart2jsOptions=--experiment-new-rti --no-minify
import "package:expect/expect.dart";
import "dart:_foreign_helper" show JS;
main() {
Expect.equals('JSArray<int>', <int>[].runtimeType.toString());
// TODO(35084): An 'any' type would make JS-interop easier to use.
Expect.equals('JSArray<dynamic>', JS('', '[]').runtimeType.toString());
}