blob: e1214e08d65b0f7a837ff0503f0389d69e3e4efc [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.
*/
library Libraries_and_Scripts_A06_t01_lib;
import "../../Utils/expect.dart";
part "public_namespace_t01_p1_lib.dart";
part "public_namespace_t01_p2_lib.dart";
final L_variable = 0;
L_func() {
return 0;
}
class LClass {
var field = 0;
func() => 0;
}
abstract class LInterface {
static final i = 0;
}
test() {
Expect.equals(0, L_variable);
Expect.equals(0, L_func());
Expect.equals(0, new LClass().field);
Expect.equals(0, new LClass().func());
Expect.equals(0, LInterface.i);
Expect.equals(1, L1_func());
Expect.equals(1, L1_variable);
Expect.equals(2, new L2Class().field);
Expect.equals(2, new L2Class().func());
Expect.equals(2, L2Interface.i);
}