blob: 3ff9f6732cb396c43084411a83e7a3433f98e692 [file] [log] [blame]
// Copyright (c) 2021, 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.
/// @assertion The static type of the instantiated type literal is Type
///
/// @description Check that the static type of the instantiated type literal is
/// Type
/// @author sgrekhov@unipro.ru
// SharedOptions=--enable-experiment=constructor-tearoffs
import "../../Utils/expect.dart";
main() {
var intList = List<int>;
Expect.isTrue(intList is Type);
Expect.isFalse(intList is List<String>); // to check that intList is not dynamic
checkType(checkIs<List<String>>, false, intList);
}