You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scheglov opened this issue
Jun 28, 2013
· 5 comments
Labels
area-testCross-cutting test issues (use area- labels for specific failures; not used for package:test).type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)
library export_cyclic_helper2 exports D from 2 export directives.
14.2 Exports
It is a compile-time error if a name N is re-exported by a library L and N
is introduced into the export namespace of L by more than one export.
scheglov@scheglov-macbookpro2:~/Source/Dart/dart$ cat /Users/scheglov/Source/Dart/dart/tests/language/export_cyclic_test.dart
// Copyright (c) 2012, 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 cyclic export and re-export.
/**
* export_cyclic_test re-exports export_cyclic_helper1 which declares B
* export_cyclic_helper1 re-exports export_cyclic_helper2 which declares C
* export_cyclic_helper2 re-exports export_cyclic_test which declares A
* export_cyclic_helper2 re-exports export_cyclic_helper3 which declares D
*/
scheglov@scheglov-macbookpro2:~/Source/Dart/dart$ cat /Users/scheglov/Source/Dart/dart/tests/language/export_cyclic_helper1.dart
// Copyright (c) 2012, 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.
class B {
A a;
B b;
C c;
D d;
}
scheglov@scheglov-macbookpro2:~/Source/Dart/dart$ cat /Users/scheglov/Source/Dart/dart/tests/language/export_cyclic_helper2.dart
// Copyright (c) 2012, 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.
class C {
A a;
B b;
C c;
D d;
}
scheglov@scheglov-macbookpro2:~/Source/Dart/dart$ cat /Users/scheglov/Source/Dart/dart/tests/language/export_cyclic_helper3.dart
// Copyright (c) 2012, 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 export_cyclic_helper3;
class D {}
The text was updated successfully, but these errors were encountered:
area-testCross-cutting test issues (use area- labels for specific failures; not used for package:test).type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)
language/export_cyclic_test
library export_cyclic_helper2 exports D from 2 export directives.
14.2 Exports
It is a compile-time error if a name N is re-exported by a library L and N
is introduced into the export namespace of L by more than one export.
scheglov@scheglov-macbookpro2:~/Source/Dart/dart$ cat /Users/scheglov/Source/Dart/dart/tests/language/export_cyclic_test.dart
// Copyright (c) 2012, 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 cyclic export and re-export.
/**
* export_cyclic_test re-exports export_cyclic_helper1 which declares B
* export_cyclic_helper1 re-exports export_cyclic_helper2 which declares C
* export_cyclic_helper2 re-exports export_cyclic_test which declares A
* export_cyclic_helper2 re-exports export_cyclic_helper3 which declares D
*/
library export_cyclic_test;
import 'export_cyclic_helper1.dart';
export 'export_cyclic_helper1.dart';
class A {}
void main() {
print(new A());
print(new B());
print(new C());
print(new D());
}
scheglov@scheglov-macbookpro2:~/Source/Dart/dart$ cat /Users/scheglov/Source/Dart/dart/tests/language/export_cyclic_helper1.dart
// Copyright (c) 2012, 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 export_cyclic_helper1;
import 'export_cyclic_helper2.dart';
export 'export_cyclic_helper2.dart';
class B {
A a;
B b;
C c;
D d;
}
scheglov@scheglov-macbookpro2:~/Source/Dart/dart$ cat /Users/scheglov/Source/Dart/dart/tests/language/export_cyclic_helper2.dart
// Copyright (c) 2012, 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 export_cyclic_helper2;
import 'export_cyclic_test.dart';
import 'export_cyclic_helper3.dart';
export 'export_cyclic_test.dart';
export 'export_cyclic_helper3.dart';
class C {
A a;
B b;
C c;
D d;
}
scheglov@scheglov-macbookpro2:~/Source/Dart/dart$ cat /Users/scheglov/Source/Dart/dart/tests/language/export_cyclic_helper3.dart
// Copyright (c) 2012, 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 export_cyclic_helper3;
class D {}
The text was updated successfully, but these errors were encountered: