blob: e14a5694255b38503f9adf80087d94ea0ab70163 [file] [log] [blame]
// Copyright (c) 2019, 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/ `pub run test -N avoid_print`
void main() {
print('ha'); // LINT
}
var x = print; // OK
void f() {
x('ha'); // OK?
}
class A {
print() {
}
}
void g() {
A().print(); // OK
}