blob: ae8d4b6ee32a4e727e1e32efb4d5ff0e375f3b70 [file] [log] [blame]
// Copyright (c) 2015, 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.
// test w/ `dart test -N camel_case_types`
class A {}
class DB {}
class FooBar {}
class _Foo {}
class Foo extends _Foo {}
typedef bool predicate(); //LINT [14:9]
typedef bool Predicate(); //OK
class fooBar // LINT
{}
class Foo$Bar //OK
{}
class Foo_Bar //LINT
{}
class $FooBar //OK
{}
typedef foo = Foo; //LINT
typedef F = Foo; //OK
typedef f = void Function(); //LINT
mixin M {}
class c = Object with M; //LINT
enum foooBar { a } //LINT
enum FoooBar { a } //OK