blob: d43628f26aa42c989048f364ac3f2b8485ae25ad [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();
}