20faaa5d94
Change-Id: Ib18f554c1076f27a3f7c0df5a36410da41a1f467 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148784 Reviewed-by: Paul Berry <paulberry@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com>
37 lines
1.3 KiB
Dart
37 lines
1.3 KiB
Dart
// Copyright (c) 2018, 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
|
|
|
|
// Regression test for dart2js that used to have a bogus
|
|
// implementation of var.== and var.hashCode.
|
|
|
|
import 'dart:typed_data';
|
|
|
|
/*member: method1:Container([exact=JSExtendableArray], element: [exact=JSUInt31], length: 1)*/
|
|
method1() => [0];
|
|
|
|
/*member: method2:Container([exact=JSExtendableArray], element: [exact=JSUInt31], length: 2)*/
|
|
method2() => [1, 2];
|
|
|
|
/*member: method3:Container([exact=NativeUint8List], element: [exact=JSUInt31], length: 1)*/
|
|
method3() => new Uint8List(1);
|
|
|
|
/*member: method4:Container([exact=NativeUint8List], element: [exact=JSUInt31], length: 2)*/
|
|
method4() => new Uint8List(2);
|
|
|
|
/*member: method1or2:Container([exact=JSExtendableArray], element: [exact=JSUInt31], length: null)*/
|
|
method1or2(/*[exact=JSBool]*/ c) => c ? method1() : method2();
|
|
|
|
/*member: method3or4:Container([exact=NativeUint8List], element: [exact=JSUInt31], length: null)*/
|
|
method3or4(/*[exact=JSBool]*/ c) => c ? method3() : method4();
|
|
|
|
/*member: main:[null]*/
|
|
main() {
|
|
method1or2(true);
|
|
method1or2(false);
|
|
method3or4(true);
|
|
method3or4(false);
|
|
}
|