blob: b44ab09a2352cab262b9b413b9c5b8f05fa498cb [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 The default bound of generic type parameters is treated as
* [Object?].
* @description Check that default class type parameter is treated as [Object?]
* dynamically.
* @author iarkh@unipro.ru
*/
// SharedOptions=--enable-experiment=non-nullable
// Requirements=nnbd-strong
import "../../Utils/expect.dart";
class A<T> {}
class B<T1, T2, T3> {}
main() {
Expect.equals(typeOf<A<Object?>>(), typeOf<A>());
Expect.equals(typeOf<B<Object?, Object?, Object?>>(), typeOf<B>());
}