Skip to content

Commit e2f76a1

Browse files
nshahanCommit Queue
authored and
Commit Queue
committed
[test] Remove use of unwrapType() from test
This happened to work in both type systems because the property of the same name exists in both, but technically `unwrapType()` is part of the old type system and will be deleted soon. Change-Id: I5620c5f409f0c6fe486b9a4c7a6872ee8deabc09 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/348800 Reviewed-by: Mark Zhou <[email protected]> Commit-Queue: Nicholas Shahan <[email protected]>
1 parent d48a76e commit e2f76a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/dartdevc/const_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
import "package:expect/expect.dart";
6-
import 'dart:_foreign_helper' show JS;
6+
import 'dart:_foreign_helper' show JS, TYPE_REF;
77
import 'dart:_runtime' as dart;
88

99
void main() {
1010
dynamic data = JS('', '[1, 2, 3, 4]');
1111
Expect.isFalse(data is List<int>);
1212

13-
var list = dart.constList(data, dart.unwrapType(int));
13+
var list = dart.constList(data, TYPE_REF<int>());
1414
Expect.isTrue(list is List<int>);
1515
Expect.throws(() {
1616
list[0] = 0;

0 commit comments

Comments
 (0)