// 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 type_init_formals` | |
class Good { | |
String name; | |
Good(this.name); // OK | |
} | |
class Bad { | |
String name; | |
Bad(String this.name); //LINT [7:6] | |
} | |
class Good2 { | |
num a; | |
Good2.i(int this.a); // OK | |
Good2.d(double this.a); // OK | |
} | |
class Good3 { | |
var a; | |
Good3(int this.a); // OK | |
} | |