blob: 860ed109df00889af4a7010bfb2888cedb9723b5 [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 grammar of expressions is extended to allow any expression to
/// be suffixed with a !.
///
/// @description Check that any expression can be suffixed with a !. Test type
/// aliases
/// @author sgrekhov@unipro.ru
// Requirements=nnbd-weak
class C {}
typedef CAlias = C?;
CAlias c = C();
test(C c) {}
main() {
test(c!);
}