blob: 81b4ce766014705805c3696f274f0c6ffab301c1 [file] [log] [blame]
// Copyright (c) 2011, 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 type parameter is considered to be a malformed type when
* referenced by a static member.
* @description Checks that compile error occurs if type parameter is used
* in a type test in static context.
* @compile-error
* @author iefremov
*/
class C<T> {
static bool f() {
return null is T;
}
}
main() {
C.f();
}