435cdeb957
BUG= https://code.google.com/p/dart/issues/detail?id=18107 R=efortuna@google.com Review URL: https://codereview.chromium.org//235883016 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35140 260f80e4-7a28-3924-810f-c04153c831b5
61 lines
1.3 KiB
Dart
61 lines
1.3 KiB
Dart
// Copyright (c) 2014, 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 test_lib;
|
|
|
|
import 'test_lib_foo.dart';
|
|
import 'test_lib_bar.dart';
|
|
export 'test_lib_foo.dart';
|
|
export 'test_lib_bar.dart';
|
|
|
|
/**
|
|
* Doc comment for class [A].
|
|
*
|
|
* Multiline Test
|
|
*/
|
|
/*
|
|
* Normal comment for class A.
|
|
*/
|
|
class A {
|
|
|
|
int _someNumber;
|
|
|
|
A() {
|
|
_someNumber = 12;
|
|
}
|
|
|
|
A.customConstructor();
|
|
|
|
/**
|
|
* Test for linking to parameter [A]
|
|
*/
|
|
void doThis(int A) {
|
|
print(A);
|
|
}
|
|
}
|
|
|
|
// A trivial use of `B` and `C` to eliminate import warnings
|
|
B sampleMethod(C cInstance) {
|
|
throw new UnimplementedError();
|
|
}
|
|
|
|
int positionalDefaultValues([int intConst = INT_CONST,
|
|
bool boolConst = BOOL_CONST, List listConst = LIST_CONST,
|
|
String stringConst = STRING_CONST, Map mapConst = MAP_CONST,
|
|
Map emptyMap = EMPTY_MAP_CONST]) {
|
|
throw new UnimplementedError();
|
|
}
|
|
|
|
const int INT_CONST = 42;
|
|
|
|
const bool BOOL_CONST = true;
|
|
|
|
const LIST_CONST = const [true, 42, 'Shanna', null, 3.14, const []];
|
|
|
|
const STRING_CONST = 'Shanna';
|
|
|
|
const MAP_CONST = const {'a':1, 2: true, 'c': const [1,null,true]};
|
|
|
|
const EMPTY_MAP_CONST = const {};
|