blob: 0c95e38b2c5e6902a24a064d6fe70213ed068999 [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.
*/
/**
* @assertion A new primitive type Never. This type is denoted by the built-in
* type declaration Never declared in dart:core.
*
* @description Check new primitive type Never
* @author sgrekhov@unipro.ru
*/
// SharedOptions=--enable-experiment=non-nullable,nonfunction-type-aliases
import "../../Utils/expect.dart";
typedef Neverland = Never;
main() {
Object? o;
Expect.isFalse(o is Neverland);
}